Om
1.0.0
A universal framework for multimedia simulation
|
A class that parses a stream of tokens into an abstract syntax tree for the Mir language. More...
#include <omScriptingMirParser.h>
Public Member Functions | |
Parser () | |
Bool | parse (const UTF8String &source, const ArrayList< Token > &tokens, Shared< Module > &module, ArrayList< Error > &errors) |
Parse the specified source and token list into an AST represented by the Module pointer. More... | |
Bool | parse (const UTF8String &source, const ArrayList< Token > &tokens, Shared< Module > &module) |
Parse the specified source and token list into an AST represented by the Module pointer. More... | |
A class that parses a stream of tokens into an abstract syntax tree for the Mir language.
om::scripting::mir::Parser::Parser | ( | ) |
Bool om::scripting::mir::Parser::parse | ( | const UTF8String & | source, |
const ArrayList< Token > & | tokens, | ||
Shared< Module > & | module, | ||
ArrayList< Error > & | errors | ||
) |
Parse the specified source and token list into an AST represented by the Module pointer.
If parsing is at least partially successful, the method sets the Module output pointer parameter to point to the resulting AST for the source file.
If there are any errors, they are placed in the output list of errors. The method returns TRUE if there are no errors, and FALSE if any errors are encountered.
Bool om::scripting::mir::Parser::parse | ( | const UTF8String & | source, |
const ArrayList< Token > & | tokens, | ||
Shared< Module > & | module | ||
) |
Parse the specified source and token list into an AST represented by the Module pointer.
If parsing is at least partially successful, the method sets the Module output pointer parameter to point to the resulting AST for the source file.
The method returns TRUE if there are no errors, and FALSE if any errors are encountered.