Implementing a simple Compiler's LL(1) Parser using Java & according to exercise defined config file.
- Input: Config File (representing LL(1) table)
- Output: Syntax Tree definition to be drawn using webgraphviz.com
- Export project as runnable Jar file, for example
syntax_parser.jar
, with main class:SyntaxMain.java
- Run from CLI:
java -jar syntax_parser.jar config.ll1 input.txt
- Config file must be a valid LL(1) parse table with first row defining Terminals
- Output will be in file
input.ptree
- Goto webgraphviz.com and paste the output to view the parse tree