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:
@ -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