public AbstractSyntaxTree Parse() { AbstractSyntaxTree ast = new AbstractSyntaxTree(); GetNextToken (); ast.Statements = ParseStatements(Set (Category.End_Of_File), Set ()); return ast; }
bool DoParsing() { this.parser = new Parser(scanner, errors); this.ast = parser.Parse(); string errMsg = "Your program contained some syntax errors and could not be interpreted:"; return DoErrorCheckingAndWriteErrorMessages(errMsg, ErrorType.SyntaxError); }
public SemanticAnalyser(AbstractSyntaxTree ast, ErrorContainer errors) { this.ast = ast; this.errors = errors; }
public void Interprete(AbstractSyntaxTree ast) { Interprete(ast.Statements); }