This is the JLU-SNL-COMPILER project.
You can find all relevant code in the SNL-compiler folder.
The FinalProject folder within SNL-compiler contains all the code, and QT needs to be installed to open it.
The text_text folder within SNL-compiler includes some sample tests for our project.
Information about the SNL language can be found in the InstructionBook folder.
The interface is shown below:
The left side is for input text, and the right side is for output.
Clicking "Debug" will run the entire program.
Step 1 displays the token sequence after lexical analysis:
Recursion displays the syntax tree for recursive descent:
LL1old displays the syntax tree after LL1 method:
LL1new displays a more concise syntax tree: