Construct Parsers for Structured Text Files


[Up] [Top]

Documentation for package ‘parcr’ version 0.6.1

Help Pages

%or% Applying alternative parsers
%ret% Return a fixed value instead of the result of a parser
%then% Applying parsers in sequence
%thenx% Keeping only first or second result from a %then% sequence
%using% Applying a function to the result of a parser
%xthen% Keeping only first or second result from a %then% sequence
by_split Applying a parser to a split string
by_symbol Applying a parser to individual symbols of a string
clear_store Clear all stored values
EmptyLine Recognize empty lines
eof Detect end of input
exactly Repeated application of a parser
fail The most basic parsers
failed Testing for parser failure
fastafile Example nucleotide fasta file
finished Test whether the parser has completely consumed the input
has_stored Check if a variable is stored
Ignore Ignore all until the end
list_stored List all stored variable names
literal Matching parser input with a literal string
match_n Repeated application of a parser
match_s Identifying and processing a string and producing custom output
MaybeEmpty Recognize empty lines
named Add a semantic name to a parser for better error messages
one_or_more Repeated application of a parser
print.marker Print method for an object of class 'marker'
reporter Turn a parser into an error reporting parser
retrieve Store and retrieve objects
satisfy Matching input using a logical function
Spacer Recognize empty lines
store Store and retrieve objects
stringparser String parser constructor
succeed The most basic parsers
zero_or_more Repeated application of a parser
zero_or_one Repeated application of a parser