-
Notifications
You must be signed in to change notification settings - Fork 0
Parser
flofreud edited this page Apr 22, 2013
·
6 revisions
This article is a draft and work in progress. Feel free to comment and discuss on the issue tracker.
When the parser hits a Token of type "program" (root node) or "block" it has to generate a new symbol table and link it to the corresponding node in the abstract syntax tree. For example by using a node attribute "environment". See Symbol Table for details on this.
The parser provides the AST for the token stream of the given lexer by:
interface Parser {
AST generateAst(Lexer lexer);
}