Implmented actions to build AST.

* Rewrote grammar slightly.
* Added parboiled parse section to JLPMain.
* Added code to build the AST while parsing.
* Created ASTNode classes.
This commit is contained in:
Jonathan Bernard
2011-08-26 15:40:56 -05:00
parent 13e0e72fed
commit c275fd0ce1
9 changed files with 368 additions and 45 deletions

View File

@ -4,7 +4,7 @@ import org.parboiled.parserunners.ReportingParseRunner
import org.parboiled.parserunners.RecoveringParseRunner
parser = Parboiled.createParser(JLPPegParser.class)
parseRunner = new RecoveringParseRunner(parser.CodePage())
parseRunner = new RecoveringParseRunner(parser.SourceFile())
testLine = """%% This the first test line.
%% Second Line