Java parser
(Java parser written in nML)

Sunae Seo
ROPAS
Computer Science
Korea Advanced Institute of Science and Technology


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


Introduction
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.


Implementation
After unpacking the source, you can see source code files and README file. In the code files, there are parser related rule files(lexer.nl, 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".


Restrictions


Download
javaparser.tar.gz


Sunae Seo
Last modified:Thu Oct 09 2002