I am looking for a Bison/Flex implementation for parsing R code, so that I can use it in a C++ program to implement a programming language that makes use of R expressions.
I couldn't find anything available on Google, other than this:
https://github.com/halpo/parser
and this does not seem to be quite an R parser. (For example, I couldn't find the BNF grammar for R expressions.)
Is the only way left actually to download R source code and play with it? R is quite a complex piece of software, and I am not sure it would be very easy to isolate the parser from the rest of the code.
You should have a better look: https://github.com/halpo/parser/blob/master/inst/grammar/gram.y
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With