MCPcopy Create free account

hub / github.com/HigherOrderCO-archive/TSPL / functions

Functions23 in github.com/HigherOrderCO-archive/TSPL

↓ 9 callersMethodconsume
Consumes an instance of the given string, erroring if it is not found.
src/lib.rs:154
↓ 7 callersMethodadvance_one
Consumes the next character in the text.
src/lib.rs:102
↓ 7 callersMethodpeek_one
Inspects the next character in the text without consuming it.
src/lib.rs:83
↓ 6 callersMethodexpected
Generates an error message for parsing failures, including the highlighted context.
src/lib.rs:67
↓ 6 callersMethodskip_trivia
Skips whitespace & comments in the text.
src/lib.rs:127
↓ 3 callersMethodpeek_many
Inspects the next `count` characters in the text without consuming them.
src/lib.rs:88
↓ 3 callersMethodtake_while
Consumes all contiguous characters matching a given predicate.
src/lib.rs:170
↓ 2 callersMethodadvance_many
Advances the parser by `count` characters, consuming them.
src/lib.rs:109
↓ 2 callersMethodparse_char
Parses a single unicode character, supporting scape sequences.
src/lib.rs:213
↓ 2 callersMethodparse_name
Parses a name from the input, supporting alphanumeric characters, underscores, periods, and hyphens.
src/lib.rs:184
↓ 2 callersMethodstarts_with
Checks if the next characters in the input start with the given string.
src/lib.rs:165
↓ 1 callersMethodparse
(&mut self)
examples/lambda_term.rs:13
Methodexpected_and
Generates an error message with an additional custom message.
src/lib.rs:75
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/lib.rs:54
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
examples/lambda_term.rs:38
Methodfrom
(val: ParseError)
src/lib.rs:48
Methodis_eof
Checks if the parser has reached the end of the input.
src/lib.rs:149
Functionmain
()
examples/lambda_term.rs:47
Methodnew
(span: (usize, usize), message: impl Into<String>)
src/lib.rs:39
Methodparse_quoted_char
Parses a quoted character, like 'x'.
src/lib.rs:240
Methodparse_quoted_string
Parses a quoted string, like "foobar".
src/lib.rs:249
Methodparse_u64
Parses a u64 from the input, supporting dec, hex (0xNUM), and bin (0bNUM).
src/lib.rs:195
Methodskip_spaces
Skips spaces in the text.
src/lib.rs:116