Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HigherOrderCO-archive/TSPL
/ functions
Functions
23 in github.com/HigherOrderCO-archive/TSPL
⨍
Functions
23
◇
Types & classes
3
↓ 9 callers
Method
consume
Consumes an instance of the given string, erroring if it is not found.
src/lib.rs:154
↓ 7 callers
Method
advance_one
Consumes the next character in the text.
src/lib.rs:102
↓ 7 callers
Method
peek_one
Inspects the next character in the text without consuming it.
src/lib.rs:83
↓ 6 callers
Method
expected
Generates an error message for parsing failures, including the highlighted context.
src/lib.rs:67
↓ 6 callers
Method
skip_trivia
Skips whitespace & comments in the text.
src/lib.rs:127
↓ 3 callers
Method
peek_many
Inspects the next `count` characters in the text without consuming them.
src/lib.rs:88
↓ 3 callers
Method
take_while
Consumes all contiguous characters matching a given predicate.
src/lib.rs:170
↓ 2 callers
Method
advance_many
Advances the parser by `count` characters, consuming them.
src/lib.rs:109
↓ 2 callers
Method
parse_char
Parses a single unicode character, supporting scape sequences.
src/lib.rs:213
↓ 2 callers
Method
parse_name
Parses a name from the input, supporting alphanumeric characters, underscores, periods, and hyphens.
src/lib.rs:184
↓ 2 callers
Method
starts_with
Checks if the next characters in the input start with the given string.
src/lib.rs:165
↓ 1 callers
Method
parse
(&mut self)
examples/lambda_term.rs:13
Method
expected_and
Generates an error message with an additional custom message.
src/lib.rs:75
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/lib.rs:54
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
examples/lambda_term.rs:38
Method
from
(val: ParseError)
src/lib.rs:48
Method
is_eof
Checks if the parser has reached the end of the input.
src/lib.rs:149
Function
main
()
examples/lambda_term.rs:47
Method
new
(span: (usize, usize), message: impl Into<String>)
src/lib.rs:39
Method
parse_quoted_char
Parses a quoted character, like 'x'.
src/lib.rs:240
Method
parse_quoted_string
Parses a quoted string, like "foobar".
src/lib.rs:249
Method
parse_u64
Parses a u64 from the input, supporting dec, hex (0xNUM), and bin (0bNUM).
src/lib.rs:195
Method
skip_spaces
Skips spaces in the text.
src/lib.rs:116