ExamplesJava 5 frontend is a parser of Java 5 programming language that builds an abstract syntax tree whose structure is described in TreeDL. Java 5 frontend can be used for any tools processing Java 5 programming language. Moreover, both parser and tree structure can be extended to implement extentions of Java 5 language. In the future Java 5 frontend will be supplemented by semantic analyzer. Java 5 parser is implemented using ANTLR parser generator, but it is only implementation detail, because the interface of Java 5 frontend consists of simple Java API for parser execution and TreeDL specification for a structure of resulting abstract syntax tree. The structure of a tree built by TreeDL tool also is described in TreeDL language. It allows to implement any custom analysis of input tree descriptions and any code generation from them. | |