tipc
A TIP to LLVM compiler
|
A collection of routines implementing the compiler front end. More...
#include <FrontEnd.h>
Static Public Member Functions | |
static std::shared_ptr< ASTProgram > | parse (std::istream &stream) |
Parse an input stream and return an AST. More... | |
static void | prettyprint (ASTProgram *program, std::ostream &os) |
static void | astVisualize (std::shared_ptr< ASTNode > node, std::ostream &os) |
A collection of routines implementing the compiler front end.
|
static |
|
static |
Parse an input stream and return an AST.
Parsing can detect errors, which are reported via throw of a ParseError exception. In the absence of errors, ownership of the generated AST is transfered to the caller.
stream | the input stream holding the program text. |
|
static |