javacc简介
javacc的使用
jjtree的使用
语法分析
javacc是什么?
下面是javacc官方文档上的定义
Java Compiler Compiler [tm] (JavaCC [tm]) is the most popular parser
generator for use with Java [tm] applications. A parser generator is a
tool that reads a grammar specification and converts it to a Java
program that can recognize matches to the grammar. In addition to
the parser generator itself, JavaCC provides other standard capabilities
related to parser generation such as tree building (via a tool
called JJTree included with JavaCC), actions,
debugging, etc.
不过在俺看来就是一个代码生成器,生成的代码可以再处理其它别的数据或是代码.相当的方便.
官方的网址是
javacc使用方法:
1.编辑*.jj文件
2.javacc *.jj
3.javac *.java
4.使用生成的CLASS文件
阅读(857) | 评论(0) | 转发(0) |