Crate libbluec
Expand description
The BlueC library.
Modules§
- codegen
- The codegen module converts the BlueTac IR to an x86_64 Assembly AST and then writes/emits the assembly code to an ‘.s’ file. In the future, we’ll add other targets such as Arm64.
- compiler_
driver - The
compiler_drivermodule defines the functions and types which orchestrate the different compilation stages. - core
- The
coremodule provides foundational types and functions used by the various compiler stages. - ir
- The
irmodule is responsible for lowering the C AST into the “BlueTac” intermediate representation (IR). - lexer
- The
lexermodule handles the lexical analysis of the source code and then passes the results (a vector of tokens) to the parser. - parser
- The
parsermodule parses the stream of tokens produced by the lexer and produces an AST of the C code. - sema
- The
semamodule is responsible for semantic analysis of the AST produced by the Parser.
Macros§
- ICE
- Generates an internal compiler error.