MCPcopy Create free account

hub / github.com/boxbeam/untwine / functions

Functions133 in github.com/boxbeam/untwine

Functionmap
Map the output type of the parser using a mapping function.
src/attr.rs:122
Methodnew
(input: &'p str, data: C)
src/context.rs:45
Methodno_color
No colors
src/pretty.rs:27
Functionnot
Errors if the specified pattern is encountered, acting as a negative lookahead. This can be used to force a different branch to parse in case a certai
src/attr.rs:40
Functionoperate
(left: f64, op: char, right: f64)
tests/src/lib.rs:25
Functionoperate
(first: bool, op: char, second: bool)
examples/bool.rs:3
Functionoperate
(left: f64, op: char, right: f64)
examples/expr.rs:3
Methodoptional
Match this token optionally. This parsing operation will always succeed, returning [None] if the the child failed.
src/parser.rs:56
Methodor
Try another parser if this one fails. This can mess up error reporting.
src/parser.rs:69
Functionparser
(input: TokenStream)
macros/src/lib.rs:777
Functionrecover_to
When the wrapped pattern fails to parse, try to jump ahead to a specific literal, but do not consume it. This allows you to specify an "anchor" from w
src/attr.rs:65
Methodrecover_to
Recover by looking ahead a specific number of characters to find the specified pattern. Can optionally consume the pattern once it is found, or leave
src/parser.rs:171
Functionrecover_to_any
When the wrapped pattern fails to parse, try to jump ahead to one of several specific literals, but do not consume it. This allows you to specify "anc
src/attr.rs:81
Methodrecover_wrapped
Recover for a parser which parses values within a set of wrapping literals, usually parens or braces. Will respect balancing these delimiters when rec
src/parser.rs:224
Functionrecovery
(input: TokenStream)
macros/src/lib.rs:787
Functionrepeat
Attempts to match a pattern a specific number of times, and return a Vec. Can take either a usize or a range.
src/attr.rs:190
Methodrepeating
Try to parse as many times as possible in sequence, optionally requiring at least one match.
src/parser.rs:77
Methodreplace_err
(&self, error: E)
src/context.rs:208
Methodresult_from
(&self, option: Option<T>)
src/context.rs:104
Methodset_err_start
(&self, start: usize)
src/context.rs:235
Functionspan
Wrap the output data in a Span, which contains a range representing the portion of the input corresponding to the parsed data.
src/attr.rs:104
Methodstring
(self)
tests/src/lib.rs:75
Functiontest_delimiter_errors
()
tests/src/lib.rs:132
Functiontest_expr
()
tests/src/lib.rs:51
Functiontest_external_parser
()
tests/src/lib.rs:226
Functiontest_match
()
tests/src/lib.rs:205
Functiontest_num_list
()
tests/src/lib.rs:45
Functiontest_numbers
()
tests/src/lib.rs:149
Functiontest_optional_after_space
()
tests/src/lib.rs:177
Functiontest_parens
()
tests/src/lib.rs:162
Functiontest_recovering_json
()
tests/src/lib.rs:110
Methodtruncate_recovered
Remove all recovered errors after a given number. This is meant for internal use only, but has to be exposed since it is used by macros.
src/context.rs:276
Functionvalid_ident_char
(c: &char)
examples/lisp.rs:26
← previous101–133 of 133, ranked by callers