Skip to content

vtantia/Java-Compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instructions to run

To extract tokens using lexer:

src/parser.py -l <input_file>

To parse a file - Generates the parse tree in "graphs" folder with the same name

src/parser.py -p <input_file>

To clean the temporary files and graph

make clean

Tests

This test file should be used for lexer:

  • LexerTest.java

These test files should be used for parser:

  • BinaryConverter.java
  • Factorial.java
  • ObjectVarsAsParameters.java
  • SimpleWordCounter.java
  • StringExample.java

In case you want to use more complicated testcases, you can use these (provided a 15 MB png file opens on your computer):

  • EightQueens.java
  • RecursionExampleDirectory.java

Dependencies

  • python2 or python3
  • pydot
  • ply

Acknowledgments:

About

Compiler for java language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published