Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pest-parser/pest
/ functions
Functions
1,009 in github.com/pest-parser/pest
⨍
Functions
1,009
◇
Types & classes
93
↓ 3 callers
Function
value
(pair: Pair<Rule>)
pest/tests/json.rs:269
↓ 2 callers
Method
add_all_rules_breakpoints
Adds all grammar rules as breakpoints. This is useful for stepping through the entire parsing process. It returns an error if the grammar hasn't been
debugger/src/lib.rs:194
↓ 2 callers
Method
at_end
(&self)
pest/src/position.rs:249
↓ 2 callers
Method
attempts_at
Get number of allowed rules attempts + prohibited rules attempts.
pest/src/parser_state.rs:826
↓ 2 callers
Method
breakpoint
(&mut self, rule: &str)
debugger/src/main.rs:50
↓ 2 callers
Function
build_result_for_pair
(pair: pest::iterators::Pair<Rule>)
grammars/tests/json.rs:232
↓ 2 callers
Method
call_stacks_number
Get number of currently present call stacks.
pest/src/parser_state.rs:303
↓ 2 callers
Method
checkpoint
(mut self: Box<Self>)
pest/src/parser_state.rs:1761
↓ 2 callers
Method
cmp
(&self, other: &Position<'i>)
pest/src/position.rs:481
↓ 2 callers
Function
consume
Consume pairs to matches `Rule::grammar_doc`, `Rule::line_doc` into `DocComment` e.g. a pest file: ```ignore //! This is a grammar doc /// line doc
generator/src/docs.rs:40
↓ 2 callers
Method
create_token
(&self, index: usize)
pest/src/iterators/tokens.rs:61
↓ 2 callers
Method
delete_all_breakpoints
Removes all breakpoints.
debugger/src/lib.rs:222
↓ 2 callers
Method
delete_breakpoint
Removes a rule from breakpoints.
debugger/src/lib.rs:215
↓ 2 callers
Function
expr
( state: Box<ParserState<'a, Rule>>, r: Rule, o: &'static str, )
pest/src/iterators/pairs.rs:705
↓ 2 callers
Method
find_line_end
(&self)
pest/src/position.rs:222
↓ 2 callers
Method
find_line_start
(&self)
pest/src/position.rs:205
↓ 2 callers
Function
generate_expr_atomic
(expr: OptimizedExpr)
generator/src/generator.rs:626
↓ 2 callers
Method
get
find matching operator by `rule`
pest/src/prec_climber.rs:214
↓ 2 callers
Function
get_node_tag
( pairs: &mut Peekable<Pairs<'i, Rule>>, )
meta/src/parser.rs:314
↓ 2 callers
Method
get_position
Returns a `Position` from the loaded input.
debugger/src/lib.rs:351
↓ 2 callers
Method
get_rule
(&self)
pest/src/parser_state.rs:173
↓ 2 callers
Function
get_test_context
()
debugger/src/lib.rs:376
↓ 2 callers
Method
grammar
(&mut self, path: PathBuf)
debugger/src/main.rs:42
↓ 2 callers
Method
input
(&mut self, path: PathBuf)
debugger/src/main.rs:46
↓ 2 callers
Method
is_start
(&self, index: usize)
pest/src/iterators/flat_pairs.rs:92
↓ 2 callers
Function
is_whitespace
(string: String)
grammars/src/lib.rs:284
↓ 2 callers
Method
is_whitespace
(&self, is_whitespace: &IsWhitespaceFn)
pest/src/error.rs:109
↓ 2 callers
Method
limit_reached
(&self)
pest/src/parser_state.rs:138
↓ 2 callers
Method
line_of
(&self)
pest/src/position.rs:197
↓ 2 callers
Method
match_char
(&self, c: char)
pest/src/position.rs:379
↓ 2 callers
Method
message
(&self)
pest/src/error.rs:575
↓ 2 callers
Method
next
(&mut self)
meta/src/optimizer/mod.rs:391
↓ 2 callers
Function
normalize_index
`constrain_idxs` helper function. Normalizes the index using its sequence’s length. Returns `None` if the normalized index is OOB.
pest/src/parser_state.rs:1792
↓ 2 callers
Method
parse
(rule: Rule, input: &str)
pest/tests/calculator.rs:37
↓ 2 callers
Method
path
Returns the path set using [`Error::with_path()`]. # Examples ``` # use pest::error::{Error, ErrorVariant}; # use pest::Position; # #[allow(non_came
pest/src/error.rs:355
↓ 2 callers
Function
result_type
()
generator/src/generator.rs:827
↓ 2 callers
Function
rule_to_message
(r: &sql::Rule)
grammars/src/lib.rs:289
↓ 2 callers
Method
run
(&mut self, rule: &str)
debugger/src/main.rs:54
↓ 2 callers
Function
skip
()
meta/src/optimizer/mod.rs:443
↓ 2 callers
Method
skip
(mut self: Box<Self>, n: usize)
pest/src/parser_state.rs:1254
↓ 2 callers
Method
skip_until_basic
(&mut self, strings: &[&str])
pest/src/position.rs:353
↓ 2 callers
Method
spacing
(&self)
pest/src/error.rs:517
↓ 2 callers
Method
stack_match_peek_slice
( mut self: Box<Self>, start: i32, end: Option<i32>, match_dir: MatchDir,
pest/src/parser_state.rs:1604
↓ 2 callers
Method
start_of_input
(self: Box<Self>)
pest/src/parser_state.rs:1307
↓ 2 callers
Function
test_toml_deep_nesting
(input: &str)
grammars/src/lib.rs:77
↓ 2 callers
Method
track
( &mut self, rule: R, pos: usize, pos_attempts_index: usize, neg_attem
pest/src/parser_state.rs:834
↓ 2 callers
Method
try_add_new_token
( &mut self, token: ParsingToken, start_position: usize, position: usize,
pest/src/parser_state.rs:387
↓ 2 callers
Method
value
(state: Box<ParserState<'_, Rule>>)
pest/tests/json.rs:118
↓ 2 callers
Function
visualize_whitespace
(input: &str)
pest/src/error.rs:746
↓ 2 callers
Method
with_path
Returns `Error` variant with `path` which is shown when formatted with `Display`. # Examples ``` # use pest::error::{Error, ErrorVariant}; # use pes
pest/src/error.rs:324
↓ 1 callers
Function
array
()
pest/tests/json.rs:398
↓ 1 callers
Method
as_node_tag
(&self)
pest/src/iterators/pair.rs:212
↓ 1 callers
Method
as_str
(&self)
pest/src/iterators/pair.rs:114
↓ 1 callers
Method
as_str
(&self)
pest/src/iterators/pairs.rs:116
↓ 1 callers
Method
at_start
(&self)
pest/src/position.rs:243
↓ 1 callers
Function
bool
()
pest/tests/json.rs:314
↓ 1 callers
Function
by_name
(name: &str)
pest/src/unicode/mod.rs:278
↓ 1 callers
Method
call_stacks
Retrieve call stacks.
pest/src/parser_state.rs:326
↓ 1 callers
Function
check_expr
( node: &'a ParserNode<'i>, rules: &'a HashMap<String, &ParserNode<'i>>, trace: &mut V
meta/src/validator.rs:635
↓ 1 callers
Function
check_for_updates
(client: Client)
debugger/src/main.rs:412
↓ 1 callers
Function
check_silent_builtin
( expr: &ParserExpr<'i>, rules_ref: &HashMap<String, (&'a ParserNode<'i>, RuleType)>,
meta/src/validator.rs:256
↓ 1 callers
Method
checkpoint_ok
(mut self: Box<Self>)
pest/src/parser_state.rs:1769
↓ 1 callers
Method
climb
Performs the precedence climbing algorithm on the `pairs` in a similar manner to map-reduce. Primary* pairs are mapped with `primary` and then reduced
pest/src/prec_climber.rs:299
↓ 1 callers
Method
climb_rec
( &self, mut lhs: T, min_prec: u32, pairs: &mut Peekable<P>, primary:
pest/src/prec_climber.rs:313
↓ 1 callers
Function
constrain_idxs
Helper function used only in case stack operations (PUSH/POP) are used in grammar.
pest/src/parser_state.rs:1783
↓ 1 callers
Function
consume
(pair: Pair<Rule>)
pest/tests/json.rs:268
↓ 1 callers
Method
cont
(&mut self)
debugger/src/main.rs:76
↓ 1 callers
Function
convert_node
(node: ParserNode<'_>)
meta/src/parser.rs:176
↓ 1 callers
Function
derive_parser
Processes the derive/proc macro input and generates the corresponding parser based on the parsed grammar. If `include_grammar` is set to true, it'll g
generator/src/lib.rs:58
↓ 1 callers
Function
derive_parser
(input: TokenStream)
derive/src/lib.rs:324
↓ 1 callers
Method
execute_command
(&mut self, command: &str)
debugger/src/main.rs:132
↓ 1 callers
Function
expr
(pairs: Pairs<Rule>)
pest/examples/parens.rs:54
↓ 1 callers
Function
expression
()
pest/tests/calculator.rs:181
↓ 1 callers
Function
generate
Generates the corresponding parser based based on the processed macro input. If `include_grammar` is set to true, it'll generate an explicit "include_
generator/src/generator.rs:28
↓ 1 callers
Function
generate_builtin_rules
Note: All builtin rules should be validated as pest builtins in meta/src/validator.rs. Some should also be keywords.
generator/src/generator.rs:104
↓ 1 callers
Function
generate_enum
( rules: &[OptimizedRule], doc_comment: &DocComment, uses_eoi: bool, non_exhaustive: bool, )
generator/src/generator.rs:205
↓ 1 callers
Function
generate_expr
(expr: OptimizedExpr)
generator/src/generator.rs:417
↓ 1 callers
Function
generate_include
Generate Rust `include_str!` for grammar files, then Cargo will watch changes in grammars.
generator/src/generator.rs:176
↓ 1 callers
Function
generate_patterns
(rules: &[OptimizedRule], uses_eoi: bool)
generator/src/generator.rs:278
↓ 1 callers
Function
generate_skip
(rules: &[OptimizedRule])
generator/src/generator.rs:372
↓ 1 callers
Function
get_attribute
(attr: &Attribute)
generator/src/parse_derive.rs:67
↓ 1 callers
Method
get_input
Returns the input string of the `Span`. This function returns the input string of the `Span` as a `&str`. This is the source string from which the `S
pest/src/span.rs:219
↓ 1 callers
Method
handle
( &self, ast: Vec<OptimizedRule>, rule: String, input: String, sender:
debugger/src/lib.rs:236
↓ 1 callers
Method
increment_depth
(&mut self)
pest/src/parser_state.rs:143
↓ 1 callers
Method
init
(self, context: &mut Cli)
debugger/src/main.rs:322
↓ 1 callers
Method
into_miette
Turns an error into a [miette](crates.io/miette) Diagnostic.
pest/src/error.rs:690
↓ 1 callers
Function
iter_all_pairs
(pairs: pest::iterators::Pairs<autocorrect::Rule>)
grammars/benches/json.rs:98
↓ 1 callers
Method
iter_top_down
Returns the iterator that steps the expression from top to bottom.
meta/src/ast.rs:107
↓ 1 callers
Method
iter_top_down
Returns a top-down iterator over the `OptimizedExpr`.
meta/src/optimizer/mod.rs:168
↓ 1 callers
Method
lbp
Left-Binding-Power "describes the symbol's precedence in infix form (most notably, operator precedence)"
pest/src/pratt_parser.rs:384
↓ 1 callers
Method
led
Left-Denotation "the action that should happen when the symbol is encountered after the start of an expression (most notably, infix and postfix opera
pest/src/pratt_parser.rs:360
↓ 1 callers
Function
left_recursion
(rules: HashMap<String, &'a ParserNode<'i>>)
meta/src/validator.rs:634
↓ 1 callers
Method
len
(&self)
pest/src/iterators/flat_pairs.rs:101
↓ 1 callers
Method
len
(&self)
pest/src/iterators/pairs.rs:418
↓ 1 callers
Method
len
(&self)
pest/src/iterators/tokens.rs:88
↓ 1 callers
Method
line_col
Returns (line, col) of pos. The pos is a byte offset, start from 0, e.g. "ab" is 2, "你好" is 6
pest/src/iterators/line_index.rs:36
↓ 1 callers
Method
list
(&mut self)
debugger/src/main.rs:99
↓ 1 callers
Method
list_breakpoints
Returns a list of all breakpoints.
debugger/src/lib.rs:229
↓ 1 callers
Method
load_grammar
Loads a grammar from a file.
debugger/src/lib.rs:152
↓ 1 callers
Method
load_grammar_direct
Loads a grammar from a string.
debugger/src/lib.rs:167
← previous
next →
101–200 of 1,009, ranked by callers