javacc & antlr 网上资料

来源:互联网 发布:tcpdump 端口 抓包 编辑:程序博客网 时间:2024/05/19 10:37

javacc

  1. https://www.cs.purdue.edu/homes/hosking/javacc/doc/
  2. http://cs.adelaide.edu.au/~charles/lt/ 澳大利亚阿德莱德大学的老师课程,其中21前后章节讲述了 javacc
  3. http://www.computing.dcu.ie/~hamilton/teaching/CA448/notes.html 都柏林大学课程
  4. http://blog.csdn.net/chaofanwei/article/details/25559029 javacc的LOOKAHEAD讲解
  5. http://www.cs.um.edu.mt/~sspi3/CSA2201_Lecture-2012.pdf

maven 和javacc插件

  • http://4thmouse.com/index.php/2008/02/19/using-javacc/ 使用插件自动执行javacc
摘自 JSqlParser 开源项目<plugin>                <groupId>org.codehaus.mojo</groupId>                <artifactId>javacc-maven-plugin</artifactId>                <version>2.6</version>                <executions>                    <execution>                        <id>javacc</id>                        <phase>generate-sources</phase>                        <goals>                            <goal>javacc</goal>                        </goals>                    </execution>                </executions>                <dependencies>                    <dependency>                        <groupId>net.java.dev.javacc</groupId>                        <artifactId>javacc</artifactId>                        <version>6.1.2</version>                    </dependency>                </dependencies>            </plugin>

具体案例讲解参考: http://4thmouse.com/index.php/2008/02/19/using-javacc/

antlr

antlr是 ANother Tool for Langage Recognization的首字母缩写。

  1. https://codemate.wordpress.com/2009/02/06/writing-a-sql-parser/
原创粉丝点击