Skip to content

HanLi05869/JLU-SNL-COMPILER

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JLU-SNL-COMPILER

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:

image

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

Recursion displays the syntax tree for recursive descent: image

LL1old displays the syntax tree after LL1 method: image

LL1new displays a more concise syntax tree: image

Step 3 shows the result of semantic analysis: image

Step 4 is for intermediate code generation: image

About

This is a JLU-SNL-COMPILER project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages