README 487 B

1234567891011121314151617181920
  1. This is a somewhat more advanced example, containing
  2. bison and lex scripts for a java source code parser.
  3. Note that there is no python file containing a Parser class. We
  4. have to generate one.
  5. To do this, run:
  6. $ bison2py javaparser.y javaparser.l javaparser.py
  7. or just:
  8. $ bison2py javaparser
  9. You should now see a file javaparser.py
  10. Then, just run the run-javaparser.py script. The
  11. script will instantiate a parser and run it on the
  12. whatever source file you give as an argument.