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 a State that generates code to isolate variables, creating a scope for the code generated by state.
functionBody(String type, State state, String acceptResult, String rejectResult) State
many(State state) State
Creates a State that generates code that will accumulate the results of the computation state in a list. Returns a list of those results even if the result list is empty.
many1(State state) State
Creates a State that generates code that will accumulate the results of the computation state in a list. If at least one result is available, it will return a list of those results, otherwise it will reject.
map(String type, State state, String expression) State
Creates a State that generates code that will transform the result of the computation state.
mux(State state) State
Creates a State that generates code that will multiplex the results of computations from different branches into one computation point, transforming multiple inputs computations into single output computation.
optional(State state) State
create a State that generates code that will return the result of the computation state or null.
procedureBody(String type, State state) State
recognize(State state, {required String position, required String substring}) State
skipMany(State state) State
skipMany1(State state) State
value(String type, String value) State