最新消息:20210917 已从crifan.com换到crifan.org

【整理】ANTLR应用案例

ANTLR crifan 4193浏览 0评论

【背景】

之前多少算是折腾过antlr:

ANTLR

但是没有总结,antlr可以用在哪些方面。

后来无意间看到一些例子,现整理如下。

【ANTLR应用案例】

1.Creole的wiki的语法也是用antlr实现解析的

Wiki Creole Grammar, Schema, and Transformations

中提到的:
“Wiki Creole EBNF grammar”

就是对应的.g文件写的:

 

2.Codimension底层的python语法解析器,也是用C语言版的ANTLR实现的

Satsky.spb.ru: codimension – FAQ

“Codimension is written mainly in python, though the python syntax parser it uses is written in C/ANTLR and is provided as a separate package.”

 

待有空整理更多。

转载请注明:在路上 » 【整理】ANTLR应用案例

发表我的评论
取消评论

表情

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

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
92 queries in 0.192 seconds, using 23.30MB memory