Sander Mathijs van Veen a8765c6130 Initial commit of PyBison (version 0.1.8) 14 năm trước cách đây
..
CREDITS a8765c6130 Initial commit of PyBison (version 0.1.8) 14 năm trước cách đây
HelloWorldApp.java a8765c6130 Initial commit of PyBison (version 0.1.8) 14 năm trước cách đây
README a8765c6130 Initial commit of PyBison (version 0.1.8) 14 năm trước cách đây
javaparser.l a8765c6130 Initial commit of PyBison (version 0.1.8) 14 năm trước cách đây
javaparser.y a8765c6130 Initial commit of PyBison (version 0.1.8) 14 năm trước cách đây
run.py a8765c6130 Initial commit of PyBison (version 0.1.8) 14 năm trước cách đây
table.h a8765c6130 Initial commit of PyBison (version 0.1.8) 14 năm trước cách đây

README

This is a somewhat more advanced example, containing
bison and lex scripts for a java source code parser.

Note that there is no python file containing a Parser class. We
have to generate one.

To do this, run:

$ bison2py javaparser.y javaparser.l javaparser.py

or just:

$ bison2py javaparser

You should now see a file javaparser.py

Then, just run the run-javaparser.py script. The
script will instantiate a parser and run it on the
whatever source file you give as an argument.