src/parser.py -l <input_file>
src/parser.py -p <input_file>
make clean
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
- python2 or python3
- pydot
- ply
- We have modified the lexer and parser from https://github.com/musiKk/plyj.
- Graph has been generated using pydot library.
- For scanner and parser, we are using ply (python-lex-yacc).
- The tests have been taken from https://www.cs.utexas.edu/~scottm/cs307/codingSamples.htm.