正在分析eclipse中的parser和g文件
来源:互联网 发布:dijkstra算法复杂度 编辑:程序博客网 时间:2024/05/05 15:48
打算编一个perl 语言的扩展.
所以,初步找了一些资源.
这里记录一下.
eclipse 的epic的org.epic.perleditor
中,
org.epic.core.parser
目录下,有许多.g文件,其中一个就是
perl.g
在文件中查找,只找java文件,
// $ANTLR : "perl.g" -> "PerlLexer.java"$// This source file was generated by ANTLR. Do not edit manually!package org.epic.core.parser;import java.io.InputStream;
// $ANTLR : "perl.g" -> "PerlLexer.java"$// This source file was generated by ANTLR. Do not edit manually!package org.epic.core.parser;public interface PerlTokenTypes {
因为perl.g最开始是这样写的
header
{
// This source file was generated by ANTLR. Do not edit manually!
package org.epic.core.parser;
}
看到这,我对ANTLR的java实现,有些看法.不是很喜欢.
一看就知道不好跟踪.
另外,好象eclipse是用这个东西来编译.g文件的.
JDT Core / HowTo: Generate the ParserWhere to get the parser generatorThe parser files and resources are automatically generated using the Jikespg parser generator. This tools hasbeen renamed Jikes Parser generator. You can find more information and latest releases at this link.The latest tool is provided in source format. We don't provide any help for compiling thesesource files. Refer to the link above if you have trouble to get binaries. Our grammar is generated using the version 1.3 of Jikespg. If newer versions fail to generate resources from ourgrammar, please send request to the Jikes Parser Generator team.
还是喜欢lex&yacc,见很久前我写的例子:
http://download.csdn.net/detail/haoyujie/778790
http://download.csdn.net/detail/haoyujie/778806
自己还是对lex&yacc在中国的发展做出了贡献的.
0 0
- 正在分析eclipse中的parser和g文件
- Eclipse中的.project文件和.buildpath文件
- eclipse中的.project 和 .classpath文件介绍
- eclipse和myeclipse中的注解模板文件
- 如何删除正在使用中的dll文件
- MoveFileEx移动正在使用中的文件
- Python中的html.parser
- parser.add_argument中的action
- spcaview 文件中的avilib分析和使用
- Stanford parser java+eclipse调用
- eclipse和Myeclipse中的properties文件查看和编辑插件
- body-parser和multer
- Android 内存分析方法整理和eclipse配置管理文件
- webkit idl parser 模块分析
- webkit idl parser 模块分析
- stanford parser 中文句法分析
- stanford parser 中文句法分析
- Eclipse中的文件比较
- oracle中导入导出数据库
- 计算几何学习之题目分类
- smarty 循环一维关联数组
- mini2440 adc for input_dev kernel2.6.32.2
- 一步步教你为网站开发Android客户端
- 正在分析eclipse中的parser和g文件
- PHP-MySQLi-Database-Class 的使用
- 【Lucene3.6.2入门系列】第05节_自定义停用词分词器和同义词分词器
- 'CDVPlugin.h' file not found 在Xcode5.11 解决办法
- Java Annotation详解
- 【SQL】exists
- cursor:mutex S和library cache lock 等待事件
- 链表建立,插入,删除,释放,输出
- C语言---不管怎么存,只管怎么读