Chinaunix首页 | 论坛 | 博客
  • 博客访问: 890046
  • 博文数量: 380
  • 博客积分: 3495
  • 博客等级: 中校
  • 技术积分: 3996
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-02 09:35
文章分类

全部博文(380)

文章存档

2015年(2)

2014年(5)

2013年(9)

2012年(9)

2011年(67)

2010年(103)

2009年(182)

2008年(3)

我的朋友

分类: Java

2009-04-21 09:05:46

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文件


阅读(828) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~