阅读背景:

如何在antlr中从语法文件创建令牌文件

来源:互联网 

I am creating a DSL using antlr. Lexer and Parser are written in one grammar file(say layout.g). Tree grammar is written in another grammar file (say layoutTree.g). Now Tree parser is not properly parsing. I printed the AST output from parser, and its correct. I walked through the generated tree parser code, and found that token value declarations assign different values in tree parser and parser.Below is the sample output from parser and tree parser.I am creating a DSL using antlr. Lexer and Pars




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: