Parser Combinator for R
Alpha checks for single alphabet character
AlphaNum checks for a single alphanumeric character
alt
combinator is similar to alternation in BNF. the parser `(alt(p1...
Digit checks for single digit
%alt%
is the infix notation for the alt
function.
%then%
is the infix operator for the then combinator.
%thentree%
is the infix operator for the then combinator, and it is ...
%using%
is the infix operator for using
ident
is a parser which matches zero or more alphanumeric characters...
identifier
creates an identifier
item
is a parser that consumes the first character of the string and...
literal
is a parser for single symbols. It will attempt to match the...
Lower checks for single lower case character
many
matches 0 or more of pattern p
. In BNF notation, repetition o...
maybe
matches 0 or 1 of pattern p
. In EBNF notation, this correspo...
nat
is a parser which matches one or more numeric characters.
natural
creates a token parser for natural numbers
Ramble is a parser generator using combinatory parsers.
satisfy
is a function which allows us to make parsers that recognise...
some
matches 1 or more of pattern p
. in BNF notation, repetition o...
space
matches zero or more space characters.
SpaceCheck checks for a single space character
String
is a combinator which allows us to build parsers which recogn...
succeed
is based on the empty string symbol in the BNF notation The ...
symbol
creates a token for a symbol
then
combinator corresponds to sequencing in BNF. The parser `(then(...
thentree
keeps the full tree representation of the results of parsin...
token
is a new primitive that ignores any space before and after app...
Unlist is the same as unlist, but doesn't recurse all the way to prese...
Upper checks for a single upper case character
using
combinator allows us to manipulate results from a parser, for ...
Parser generator for R using combinatory parsers. It is inspired by combinatory parsers developed in Haskell.