Package: dparser 1.3.1-11

Matthew Fidler

dparser: Port of 'Dparser' Package

A Scannerless GLR parser/parser generator. Note that GLR standing for "generalized LR", where L stands for "left-to-right" and R stands for "rightmost (derivation)". For more information see <>. This parser is based on the Tomita (1987) algorithm. (Paper can be found at <>). The original 'dparser' package documentation can be found at <>. This allows you to add mini-languages to R (like rxode2's ODE mini-language Wang, Hallow, and James 2015 <doi:10.1002/psp4.12052>) or to parse other languages like 'NONMEM' to automatically translate them to R code. To use this in your code, add a LinkingTo dparser in your DESCRIPTION file and instead of using #include <dparse.h> use #include <dparser.h>. This also provides a R-based port of the make_dparser <> command called mkdparser(). Additionally you can parse an arbitrary grammar within R using the dparse() function, which works on most OSes and is mainly for grammar testing. The fastest parsing, of course, occurs at the C level, and is suggested.

Authors:Matthew Fidler [aut, cre], John Plevyak [aut, cph]

dparser.pdf |dparser.html
dparser/json (API)

# Install dparser in R:
install.packages('dparser', repos = c('', ''))

Peer review:

Bug tracker:


9 exports 4 stars 4.18 score 1 dependencies 32 dependents 1.5k downloads

Last updated 7 months agofrom:f61c1d12cc0f2d296a7e1eee2d7ef6f4a306ff3f