Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an existing ANTLR or IRONY grammar for R?

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

Many thanks.

like image 672
Jonno Avatar asked Apr 18 '11 15:04

Jonno


2 Answers

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

like image 92
Terence Parr Avatar answered Oct 29 '22 02:10

Terence Parr


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

like image 24
Ira Baxter Avatar answered Oct 29 '22 00:10

Ira Baxter