最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【记录】配置Eclipse中的antlr

Eclipse crifan 3806浏览 0评论

在安装好Eclipse的antrl插件:

【记录】折腾Antlr的Eclipse插件

后,需要先去配置对应的antlr,然后才能使用该插件。


1.参考:

Antlr+Eclipse开发环境的搭建

先去配置对应的Eclipse中的Antlr.

2.从:

http://www.antlr3.org/download/

下载到所需要的:

antlr-3.5-complete.jar

3.然后打开Eclipse的antlr配置:

antrl config page

4.在其中的Builder中,添加对应的jar包:

builder add choose antlr complete jar then ok

添加后如下:

added ANTLR Parser Generator Version 3.5

5.然后设置输入文件夹,和相关的配置选项:

code generator choose output folder

 

注意到,上述支持-debug参数。

等以后,需要用到debug模式的时候,要记得,此处是支持的。

6.顺带看看其他的选项支持:

editor options for antlr

content assit for antlr

folding for antlr settings

formatter  for antlr settings

save actions for antlr settings

可以看到,当保存的时候,会自动生成对应的代码的。

syntax coloring of editor for antlr settings

templates for antlr settings

gunit for antlr settings

gunit syntax coloring for antlr settings

string template for antlr settings

string template syntax coloring for antlr settings

visulization for antlr settings

【总结】

配置Eclipse的antlr插件,主要就是:

  • 添加用于解析的jar包:antlr-3.5-complete.jar
  • 设置输出文件夹

转载请注明:在路上 » 【记录】配置Eclipse中的antlr

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
82 queries in 0.218 seconds, using 22.15MB memory