Learn R Programming

⚠️There's a newer version (1.3.1-12) of this package.Take me there.

dparser (version 1.3.1-4)

Port of 'Dparser' Package

Description

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 RxODE's ODE mini-language Wang, Hallow, and James 2015 ) 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 use #include . 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.

Copy Link

Version

Install

install.packages('dparser')

Monthly Downloads

1,885

Version

1.3.1-4

License

BSD_3_clause + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Matthew Fidler

Last Published

April 7th, 2021

Functions in dparser (1.3.1-4)

dpReload

Reload the R dparser dll
gc.dparser

Garbage collection for dpaser functions
dparse

Create R-based Dparser tree walking function based on grammar
dpDefaultSkip

Default skip function for darsing grammar
dparser-package

A Scannerless GLR parser/parser generator
dpIncludeDir

Dparser C headers include directory
dpGetFile

Get file for dparser arguments
dparserFunction-class

A S4 class for dparser functions
dpRparse

C code for R parser
dpVersion

Version and repository for this dparser package.
mkdparse

mkdparse dparser grammer c
show,dparserFunction-method

Print the s4 object