Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | List of all members
om::scripting::mir::Parser Class Reference

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...
 

Detailed Description

A class that parses a stream of tokens into an abstract syntax tree for the Mir language.

Constructor & Destructor Documentation

om::scripting::mir::Parser::Parser ( )

Member Function Documentation

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.


The documentation for this class was generated from the following file: