搭建antlr4.2.2开发环境
来源:互联网 发布:linux lcd驱动移植 编辑:程序博客网 时间:2024/06/14 05:50
- Eclipse 4.3 (Kepler)
- XText 2.5.x/2.6
ANTLR 4 IDE isn't available in the Eclipse Market Place yet, so you MUST installed in the old way. Please follow these instructions:
- Open Eclipse Kepler (4.3)
- Go to:
Help > Install New Software...
- You need to Install XText 2.5.x/2.6
- Copy and paste this url: http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/ in theWork with text field
- Hit Enter
- Choose XText 2.5.4. NOTE: DON'T confuse with Xtend, you must choose Xtext
- Now, copy and paste this url: http://dl.bintray.com/jknack/antlr4ide in the Work with text field
- Choose: ANTLR 4 SDK IDE. NOTE: If you don't see it, please unmark the Group items by category option
- Click: Next and follow the normal Eclipse installation procedure
*.g4
extension will be opened by the ANTLR 4 Editor. So, just open a *.g4
file and play with itCode is automatically generated on save if the grammar is valid. You can turn off this feature by going to: Window > Preferences > ANTLR 4 > Tool
and uncheck the "Tool is activated" option. From there you can configure a couple more of options.
You can find the generated code in the target/generated-sources/antlr4
(same directory as antlr4-maven-plugin)
5,手动产生代码:
You can fire a code generation action by selecting a *.g4
file from the Package Explorer, right click: Run As > ANTLR 4
.
A default ANTLR 4 launch configuration will be created. You can modify the generated launch configuration by going to: Run > External Tools > External Tools Configurations...
from there you will see the launch configuration and how to set or override code generation options
4:插件的使用:
1,可以自动生成语法树:
2,可以根据.g文件自动生成图形化的文法结构:
- 搭建antlr4.2.2开发环境
- antlr4+eclipse环境搭建及实例分析
- antlr4+eclipse环境搭建以及创建实例
- Antlr4 环境配置
- 搭建Android 2.2开发环境
- 搭建 Android 2.2 开发环境
- 搭建 Android 2.2 开发环境
- 搭建android 2.2 开发环境
- Android SDK 2.2 开发环境搭建
- Android SDK 2.2开发环境搭建
- Android SDK 2.2 开发环境搭建
- 搭建 Android 2.2 开发环境 (转载)
- grails2.2.2学习(一)开发环境搭建
- Android Studio 2.2 NDK开发环境搭建
- Android Studio 2.2 NDK开发环境搭建
- Android SDK 2.2 开发环境搭建
- 搭建Java开发环境
- 搭建Java开发环境
- 【转载】Linux SHELL if 命令参数说明
- 【转载】在Linux下限制用户登陆IP
- hive --service hiveserver2
- hwi(hive web interface)-hive web页面的搭建
- Hadoop中Speculative Task调度策略
- 搭建antlr4.2.2开发环境
- 数据结构实验之栈与队列二:一般算术表达式转换成后缀式
- JAVA如何避免死锁的几个常见方法
- awk输出单引号
- 很牛的人的日志
- 单例实现的七种方式
- 使用hive自定义函数pom.xml的写法
- AM2 开发日志1 10.16
- oracle的instr函数在hive上面的实现