Is there an existing ANTLR or IRONY grammar for R?

2019-04-05 09:03发布

问题:

Does anyone know if there is an existing existing ANTLR or IRONY grammar for R?

Many thanks.

回答1:

I've built an R grammar for the early access "Honey Badger" ANTLR v4 release, if you'd like to give it a look. See the ANTLR v4 Examples page. Source for v4 is https://github.com/antlr/antlr4. binary jar here: http://antlr.org/download/antlr-4.0ea-complete.jar For R you want http://www.antlr.org/wiki/download/attachments/28049418/R.g4



回答2:

I'd guess a good place to look would be R to C Compiler (RCC) that was developed by John Garvin at Rice