A Parser for C++ using Java. Created using the grammar found here.
#####How to compile:
$ javac src/org/bromano/cplusplusparser/parser/*.java src/org/bromano/cplusplusparser/scanner/*.java src/org/bromano/cplusplusparser/Main.java
$ jar cvfm cplusplusparser.jar src/META-INF/MANIFEST.mf -C src .
#####How to run:
$ java -jar cplusplusparser.jar "path\to\file"
OR
$ java -jar cplusplusparser.jar < "path\to\file"
Example output for a very simple c++ file:
int main() {
char * s = "s";
}
Token Stream:
AST: