Optional
Readonly
This flag is to indicate whether this action's output might be muted. The lexer will based on this flag to accelerate the lexing process. If true, this action's output could be muted. If false, this action's output should never be muted.
true
false
Check token content if accept is true. condition should return error, undefined means no error.
accept
condition
undefined
Set error if accept is true.
Mute action if accept is true.
Execute the new action if current action can't accept input.
Reject if accept is true and rejecter returns true.
rejecter
Call f if accept is true.
f
Static
Private
Reduce actions to one action. This will reduce the lexer loop times to optimize the performance.
Rest
Generated using TypeDoc
This flag is to indicate whether this action's output might be muted. The lexer will based on this flag to accelerate the lexing process. If
true, this action's output could be muted. Iffalse, this action's output should never be muted.