开发者

Can ANTLR grammar files be modularised?

开发者 https://www.devze.com 2022-12-12 23:52 出处:网络
I am building ANTLR3 applications where some of the same grammar rules are likely to be used in different applications. There will be many *.g files but they may, for example, all wish to reference th

I am building ANTLR3 applications where some of the same grammar rules are likely to be used in different applications. There will be many *.g files but they may, for example, all wish to reference the same version of FLOAT. Are there "import" facilities whereby a *.g can be assembled from other *.g fi开发者_JAVA技巧les and if so what are the precedence rules?


You mean composite grammars?

0

精彩评论

暂无评论...
验证码 换一张
取 消