Case<'TPar, 'TNode>
Case represents a state transition of a generic recursive descent parser.
Constructors
Constructor | Description |
new(pattern, matchedFun, adjustFun)
Signature: (pattern:string * matchedFun:Func<'TPar,'TNode,State<'TPar,'TNode>> * adjustFun:Func<'TPar,'TNode,Text,Text>) -> unit
|
A supplied adjustFun can modify the text preceeding the match of the case in a searching state, before it is handed to the TextAct of the state. |
new(matchedFun, adjustFun)
Signature: (matchedFun:Func<'TPar,'TNode,State<'TPar,'TNode>> * adjustFun:Func<'TPar,'TNode,Text,Text>) -> unit
|
|
new(regex, matchedFun, adjustFun)
Signature: (regex:Regex * matchedFun:Func<'TPar,'TNode,State<'TPar,'TNode>> * adjustFun:Func<'TPar,'TNode,Text,Text>) -> unit
|
|
new(rx, matchedFun, adjustFun)
Signature: (rx:Rx * matchedFun:Func<'TPar,'TNode,State<'TPar,'TNode>> * adjustFun:Func<'TPar,'TNode,Text,Text>) -> unit
|