specify | R Documentation |
Specify a grammar term including test cases
specify(query, testcases, success = NULL, leftovers = NULL)
query |
The Ramble parser to define |
testcases |
The testcases to run through the parser, a list of strings |
leftovers |
The expected leftovers, or NULL if the parsing should fail |
The parser.
The function exits with an error if a test fails.
If you specify any NULL results, leftovers
needs to be a list, not vector!
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.