Java parser
(Java parser written in nML)

Sunae Seo
Computer Science
Korea Advanced Institute of Science and Technology

The grammar of Java programming language used here is from CUP.

This package contains a parser for Java programming language implemented in nlex, nyacc and nmlc. The executable of this package gets Java source code and produces abstract syntax tree represented as a set of nML data types. The grammar(JDK 1.2) used here is from CUP, a parser generator for Java programming language.

After unpacking the source, you can see source code files and README file. In the code files, there are parser related rule files(, parser.ny), abstract syntax tree definition file(ast_gen.n), files for printing and so on. Detailed information of all files is in README file. There are three kinds of printing options.

By typing "make", you can obtain executable file, whose name is "j_parser".



Sunae Seo
Last modified:Thu Oct 09 2002