extra library

Functions

automaton(String type, State state, String template, {String? accept, String placeholder = '{{@state}}', String? reject, String result = 'null', Map<String, String> values = const {}}) State
block(State state) State
Creates State that generates source code that isolate variable names, creating a scope for the code generated by state.
functionBody(String type, State state, String acceptResult, String rejectResult) State
many(State state) State
Creates State that generates source code that will accumulate the results of the state computations in a list. Returns a list of those results even if the result list is empty.
many1(State state) State
Creates State that generates source code that will accumulate the results of the state computations in a list. If at least one result is available, computation will return a list of those results, otherwise computation will fail.
map(String type, State state, String expression) State
Creates a State that generates source that will transform the result of the state computation.
mux(State state) State
Creates State that generates sourcecode that will multiplex the results of state computation from different branches into one computation point, transforming multiple inputs computations into single output computation.
optional(State state) State
Creates State that generates source code that will return the result of the state computation or null.
procedureBody(String type, State state) State
recognize(State state, {required String position, required String substring}) State
skipMany(State state) State
Creates State that source generates code which will perform state computations until the next state computation fails.
skipMany1(State state) State
Creates State that source generates code which will perform state computations until the next state computation fails.
value(String type, String value) State