Compiler Class
Assembly: Topten.Cminor.Compiler.dll
Namespace: Topten.Cminor
Entry point to the Cminor Compiler
public class Compiler
Inheritance
Compiler → object
Constructors
Compiler() | Constructor |
Fields
OnMessage | Callback for message notifications |
Properties
ErrorCount | Total number of errors encountered |
NoDynamicCCode | |
TypeSystem | The type system used during this compilation |
WarningCount | Total number of warnings encountered |
Methods
AddCode(string, string) | Add code to be compiled |
AddFile(string) | Add code from a file |
Bind() | Parse (if not already done) and Bind everything |
BuildModule() | Build an in-memory module |
Parse() | Parse all loaded compilation units |
RenderAst(System.IO.TextWriter) | Render the current AST |
RenderAstToString() | Render C Code to a string |
RenderCCode(System.IO.TextWriter) | Render C Code |
RenderCCodeToString() | Render C Code to a string |
WriteExe(string, RuntimeSupport) | Write the compiled code to a .exe |