Ramble: Parser Combinator for R

Share:

Parser generator for R using combinatory parsers. It is inspired by combinatory parsers developed in Haskell.

Author
Chapman Siu
Date of publication
2016-10-29 10:48:13
Maintainer
Chapman Siu <chpmn.siu@gmail.com>
License
MIT + file LICENSE
Version
0.1.1
URLs

View on CRAN

Man pages

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

Files in this package

Ramble
Ramble/inst
Ramble/inst/doc
Ramble/inst/doc/Higher-Order_Functions_for_Parsing_in_R.html
Ramble/inst/doc/Higher-Order_Functions_for_Parsing_in_R.R
Ramble/inst/doc/Higher-Order_Functions_for_Parsing_in_R.Rmd
Ramble/tests
Ramble/tests/testthat.R
Ramble/tests/testthat
Ramble/tests/testthat/test_repetition.R
Ramble/tests/testthat/test_functions.R
Ramble/tests/testthat/test_functions2.R
Ramble/NAMESPACE
Ramble/R
Ramble/R/utils.R
Ramble/R/Ramble.R
Ramble/R/parser.R
Ramble/vignettes
Ramble/vignettes/Higher-Order_Functions_for_Parsing_in_R.Rmd
Ramble/MD5
Ramble/build
Ramble/build/vignette.rds
Ramble/DESCRIPTION
Ramble/man
Ramble/man/symbol.Rd
Ramble/man/space.Rd
Ramble/man/grapes-then-grapes.Rd
Ramble/man/token.Rd
Ramble/man/grapes-using-grapes.Rd
Ramble/man/maybe.Rd
Ramble/man/SpaceCheck.Rd
Ramble/man/grapes-thentree-grapes.Rd
Ramble/man/thentree.Rd
Ramble/man/satisfy.Rd
Ramble/man/item.Rd
Ramble/man/literal.Rd
Ramble/man/Ramble.Rd
Ramble/man/then.Rd
Ramble/man/Unlist.Rd
Ramble/man/succeed.Rd
Ramble/man/many.Rd
Ramble/man/String.Rd
Ramble/man/Lower.Rd
Ramble/man/Digit.Rd
Ramble/man/Alpha.Rd
Ramble/man/Upper.Rd
Ramble/man/AlphaNum.Rd
Ramble/man/natural.Rd
Ramble/man/ident.Rd
Ramble/man/identifier.Rd
Ramble/man/using.Rd
Ramble/man/grapes-alt-grapes.Rd
Ramble/man/some.Rd
Ramble/man/nat.Rd
Ramble/man/alt.Rd
Ramble/LICENSE