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:
1 parent
13e0e72fed
commit
c275fd0ce1
9 files changed
+368
-45
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user