Package: parcr 0.6.1.9000

Douwe Molenaar

parcr: Construct Parsers for Structured Text Files

Construct parser combinator functions, higher order functions that parse input. Construction of such parsers is transparent and easy. Their main application is the parsing of structured text files like those generated by laboratory instruments. Based on a paper by Hutton (1992) <doi:10.1017/S0956796800000411>.

Authors:Douwe Molenaar [aut, cre, cph]

parcr_0.6.1.9000.tar.gz
parcr_0.6.1.9000.zip(r-4.7)parcr_0.6.1.9000.zip(r-4.6)parcr_0.6.1.9000.zip(r-4.5)
parcr_0.6.1.9000.tgz(r-4.6-any)parcr_0.6.1.9000.tgz(r-4.5-any)
parcr_0.6.1.9000.tar.gz(r-4.7-any)parcr_0.6.1.9000.tar.gz(r-4.6-any)
parcr_0.6.1.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
parcr/json (API)

# Install 'parcr' in R:
install.packages('parcr', repos = c('https://systemsbioinformatics.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/systemsbioinformatics/parcr/issues

Datasets:

On CRAN:

Conda:

combinatorshigher-order-functionsparserparsing

5.56 score 6 stars 12 scripts 167 downloads 33 exports 0 dependencies

Last updated from:2e583a197a. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK117
source / vignettesOK220
linux-release-x86_64OK119
macos-release-arm64OK120
macos-oldrel-arm64OK190
windows-develOK82
windows-releaseOK78
windows-oldrelOK69
wasm-releaseOK89

Exports:%or%%ret%%then%%thenx%%using%%xthen%by_splitby_symbolclear_storeEmptyLineeofexactlyfailfailedfinishedhas_storedIgnorelist_storedliteralmatch_nmatch_sMaybeEmptynamedone_or_morereporterretrievesatisfySpacerstorestringparsersucceedzero_or_morezero_or_one

Dependencies:

Discussion of some design details
Lazy evaluation by %or%, and constructing parsers | Tracking where a parser error occurs | The package rex | Literature

Last update: 2026-02-15
Started: 2024-01-15

Making parsers with higher order functions
Goal of the package | Higher order functions in R | Creating parser combinators in R to parse text files | The output of the parsers: a list | A simple example of using parser combinators | The functions in the parcr package | The fundamental parsers | Succeeding and failing | Parsers for the current element | The fundamental combinators | Modifying the output of a parser | Derived parsers | Iterators | Recognizing and processing strings with match_s | Functions that split a string and parse the substrings | Derived functions to recognize and modify empty lines | Example application: a parser for fasta sequence files | Example application: parsers with parameters | Improved error messaging (since v0.6) | Automatic Expected Values | Custom Expected Values with satisfy() | Semantic Names with named() | Literature

Last update: 2026-02-13
Started: 2023-12-29