Production rule protocol for translation between data and strings
Methods
|
|
format
getOpening
parse
withTerminators
|
|
format
|
format ( data, write )
Pass formatted data to write()
|
|
getOpening
|
getOpening ( closing, memo )
Possible opening characters for this match, based on closing
|
|
parse
|
parse (
input,
produce,
startState,
)
Parse input at startState , call produce(result) , return state
Return a ParseError instance if no match
|
|
withTerminators
|
withTerminators ( terminators, memo )
Return a version of this syntax using the specified terminators
|
|