pLiteral | R Documentation |
Create a parser to parse text matching a literal string.
pLiteral(tag, string = tag)
tag |
a class name or a function of a single argument that constructs an object representing the result of the parse. |
string |
The string literal to match. |
This function creates a parser that accepts input that matches a given string.
The tag
argument should either be a string naming the class
of the result, or a function that constructs a object representing
the result of the parse, given the matched literal string.
Returns a parser.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.