radiance.s0Radiance bootstrapping compiler home log refs
master
  • master
7834d3a Initial commit Alexis Sellier 1 month ago
Clone
gen/ .clang-format 570 B .gitignore 30 B .gitsigners 112 B LICENSE 1.1 KiB Makefile 911 B README 1.8 KiB ast.c 5.0 KiB ast.h 15.1 KiB desugar.c 23.1 KiB desugar.h 286 B gen.c 108.5 KiB gen.h 4.9 KiB io.c 1.1 KiB io.h 444 B limits.h 1.3 KiB module.c 10.0 KiB module.h 2.2 KiB options.c 1.4 KiB options.h 472 B parser.c 68.3 KiB parser.h 942 B radiance.c 3.7 KiB ralloc.c 2.0 KiB ralloc.h 1.1 KiB resolver.c 109.7 KiB resolver.h 5.6 KiB riscv.c 12.0 KiB riscv.h 12.0 KiB scanner.c 10.2 KiB scanner.h 3.2 KiB strings.c 2.6 KiB strings.h 407 B symtab.c 5.7 KiB symtab.h 4.6 KiB types.h 1.0 KiB util.h 1.5 KiB
desugar.h 286 B raw
1
#ifndef DESUGAR_H
2
#define DESUGAR_H
3
4
#include "ast.h"
5
#include "module.h"
6
7
/* Desugar pass context */
8
typedef struct {
9
    u32 flags;
10
} desugar_t;
11
12
/* AST desugaring pass; runs after parsing to transform the AST */
13
node_t *desugar_run(desugar_t *d, module_t *mod, node_t *ast);
14
15
#endif