ecc1 / joust

Java lexer, parser, and pretty-printer written in OCaml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Joust: a Java lexer, parser, and pretty-printer written in OCaml
Copyright (C) 2022  Eric C. Cooper <ecc@cmu.edu>

Pretty-printing options:
  pretty.ml should be symbolically linked to one of the following:
    pretty_canon.ml
      prints expressions in canonical form (fully parenthesized)
    pretty_bare.ml
      prints expressions in bare form with fewer parentheses
    pretty_min.ml (recommended)
      uses operator precedence to print expressions with minimal parentheses
  *** WARNING: always do "make clean" after changing the symlink ***

Java source code used for testing:
  Java 2 SDK <http://www.sun.com/software/communitysource/java2/index.html>
  Java 2 documentation examples <http://java.sun.com/j2se/1.3/docs.html>
  NetBeans <http://www.netbeans.org/downloads.html>

  find /usr/local/... -name '*.java' > java-files

Regression tests:
  xargs ./fixpoint.sh < java-files >& test.out
  diff java-files test.out

  xargs ./precedence.sh < java-files >& test.out
  diff java-files test.out

About

Java lexer, parser, and pretty-printer written in OCaml

License:Other


Languages

Language:OCaml 81.1%Language:Yacc 15.6%Language:Perl 2.1%Language:Shell 0.9%Language:Makefile 0.3%