MCPcopy Create free account

hub / github.com/pest-parser/pest / functions

Functions1,009 in github.com/pest-parser/pest

↓ 3 callersFunctionvalue
(pair: Pair<Rule>)
pest/tests/json.rs:269
↓ 2 callersMethodadd_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 callersMethodat_end
(&self)
pest/src/position.rs:249
↓ 2 callersMethodattempts_at
Get number of allowed rules attempts + prohibited rules attempts.
pest/src/parser_state.rs:826
↓ 2 callersMethodbreakpoint
(&mut self, rule: &str)
debugger/src/main.rs:50
↓ 2 callersFunctionbuild_result_for_pair
(pair: pest::iterators::Pair<Rule>)
grammars/tests/json.rs:232
↓ 2 callersMethodcall_stacks_number
Get number of currently present call stacks.
pest/src/parser_state.rs:303
↓ 2 callersMethodcheckpoint
(mut self: Box<Self>)
pest/src/parser_state.rs:1761
↓ 2 callersMethodcmp
(&self, other: &Position<'i>)
pest/src/position.rs:481
↓ 2 callersFunctionconsume
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 callersMethodcreate_token
(&self, index: usize)
pest/src/iterators/tokens.rs:61
↓ 2 callersMethoddelete_all_breakpoints
Removes all breakpoints.
debugger/src/lib.rs:222
↓ 2 callersMethoddelete_breakpoint
Removes a rule from breakpoints.
debugger/src/lib.rs:215
↓ 2 callersFunctionexpr
( state: Box<ParserState<'a, Rule>>, r: Rule, o: &'static str, )
pest/src/iterators/pairs.rs:705
↓ 2 callersMethodfind_line_end
(&self)
pest/src/position.rs:222
↓ 2 callersMethodfind_line_start
(&self)
pest/src/position.rs:205
↓ 2 callersFunctiongenerate_expr_atomic
(expr: OptimizedExpr)
generator/src/generator.rs:626
↓ 2 callersMethodget
find matching operator by `rule`
pest/src/prec_climber.rs:214
↓ 2 callersFunctionget_node_tag
( pairs: &mut Peekable<Pairs<'i, Rule>>, )
meta/src/parser.rs:314
↓ 2 callersMethodget_position
Returns a `Position` from the loaded input.
debugger/src/lib.rs:351
↓ 2 callersMethodget_rule
(&self)
pest/src/parser_state.rs:173
↓ 2 callersFunctionget_test_context
()
debugger/src/lib.rs:376
↓ 2 callersMethodgrammar
(&mut self, path: PathBuf)
debugger/src/main.rs:42
↓ 2 callersMethodinput
(&mut self, path: PathBuf)
debugger/src/main.rs:46
↓ 2 callersMethodis_start
(&self, index: usize)
pest/src/iterators/flat_pairs.rs:92
↓ 2 callersFunctionis_whitespace
(string: String)
grammars/src/lib.rs:284
↓ 2 callersMethodis_whitespace
(&self, is_whitespace: &IsWhitespaceFn)
pest/src/error.rs:109
↓ 2 callersMethodlimit_reached
(&self)
pest/src/parser_state.rs:138
↓ 2 callersMethodline_of
(&self)
pest/src/position.rs:197
↓ 2 callersMethodmatch_char
(&self, c: char)
pest/src/position.rs:379
↓ 2 callersMethodmessage
(&self)
pest/src/error.rs:575
↓ 2 callersMethodnext
(&mut self)
meta/src/optimizer/mod.rs:391
↓ 2 callersFunctionnormalize_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 callersMethodparse
(rule: Rule, input: &str)
pest/tests/calculator.rs:37
↓ 2 callersMethodpath
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 callersFunctionresult_type
()
generator/src/generator.rs:827
↓ 2 callersFunctionrule_to_message
(r: &sql::Rule)
grammars/src/lib.rs:289
↓ 2 callersMethodrun
(&mut self, rule: &str)
debugger/src/main.rs:54
↓ 2 callersFunctionskip
()
meta/src/optimizer/mod.rs:443
↓ 2 callersMethodskip
(mut self: Box<Self>, n: usize)
pest/src/parser_state.rs:1254
↓ 2 callersMethodskip_until_basic
(&mut self, strings: &[&str])
pest/src/position.rs:353
↓ 2 callersMethodspacing
(&self)
pest/src/error.rs:517
↓ 2 callersMethodstack_match_peek_slice
( mut self: Box<Self>, start: i32, end: Option<i32>, match_dir: MatchDir,
pest/src/parser_state.rs:1604
↓ 2 callersMethodstart_of_input
(self: Box<Self>)
pest/src/parser_state.rs:1307
↓ 2 callersFunctiontest_toml_deep_nesting
(input: &str)
grammars/src/lib.rs:77
↓ 2 callersMethodtrack
( &mut self, rule: R, pos: usize, pos_attempts_index: usize, neg_attem
pest/src/parser_state.rs:834
↓ 2 callersMethodtry_add_new_token
( &mut self, token: ParsingToken, start_position: usize, position: usize,
pest/src/parser_state.rs:387
↓ 2 callersMethodvalue
(state: Box<ParserState<'_, Rule>>)
pest/tests/json.rs:118
↓ 2 callersFunctionvisualize_whitespace
(input: &str)
pest/src/error.rs:746
↓ 2 callersMethodwith_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 callersFunctionarray
()
pest/tests/json.rs:398
↓ 1 callersMethodas_node_tag
(&self)
pest/src/iterators/pair.rs:212
↓ 1 callersMethodas_str
(&self)
pest/src/iterators/pair.rs:114
↓ 1 callersMethodas_str
(&self)
pest/src/iterators/pairs.rs:116
↓ 1 callersMethodat_start
(&self)
pest/src/position.rs:243
↓ 1 callersFunctionbool
()
pest/tests/json.rs:314
↓ 1 callersFunctionby_name
(name: &str)
pest/src/unicode/mod.rs:278
↓ 1 callersMethodcall_stacks
Retrieve call stacks.
pest/src/parser_state.rs:326
↓ 1 callersFunctioncheck_expr
( node: &'a ParserNode<'i>, rules: &'a HashMap<String, &ParserNode<'i>>, trace: &mut V
meta/src/validator.rs:635
↓ 1 callersFunctioncheck_for_updates
(client: Client)
debugger/src/main.rs:412
↓ 1 callersFunctioncheck_silent_builtin
( expr: &ParserExpr<'i>, rules_ref: &HashMap<String, (&'a ParserNode<'i>, RuleType)>,
meta/src/validator.rs:256
↓ 1 callersMethodcheckpoint_ok
(mut self: Box<Self>)
pest/src/parser_state.rs:1769
↓ 1 callersMethodclimb
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 callersMethodclimb_rec
( &self, mut lhs: T, min_prec: u32, pairs: &mut Peekable<P>, primary:
pest/src/prec_climber.rs:313
↓ 1 callersFunctionconstrain_idxs
Helper function used only in case stack operations (PUSH/POP) are used in grammar.
pest/src/parser_state.rs:1783
↓ 1 callersFunctionconsume
(pair: Pair<Rule>)
pest/tests/json.rs:268
↓ 1 callersMethodcont
(&mut self)
debugger/src/main.rs:76
↓ 1 callersFunctionconvert_node
(node: ParserNode<'_>)
meta/src/parser.rs:176
↓ 1 callersFunctionderive_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 callersFunctionderive_parser
(input: TokenStream)
derive/src/lib.rs:324
↓ 1 callersMethodexecute_command
(&mut self, command: &str)
debugger/src/main.rs:132
↓ 1 callersFunctionexpr
(pairs: Pairs<Rule>)
pest/examples/parens.rs:54
↓ 1 callersFunctionexpression
()
pest/tests/calculator.rs:181
↓ 1 callersFunctiongenerate
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 callersFunctiongenerate_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 callersFunctiongenerate_enum
( rules: &[OptimizedRule], doc_comment: &DocComment, uses_eoi: bool, non_exhaustive: bool, )
generator/src/generator.rs:205
↓ 1 callersFunctiongenerate_expr
(expr: OptimizedExpr)
generator/src/generator.rs:417
↓ 1 callersFunctiongenerate_include
Generate Rust `include_str!` for grammar files, then Cargo will watch changes in grammars.
generator/src/generator.rs:176
↓ 1 callersFunctiongenerate_patterns
(rules: &[OptimizedRule], uses_eoi: bool)
generator/src/generator.rs:278
↓ 1 callersFunctiongenerate_skip
(rules: &[OptimizedRule])
generator/src/generator.rs:372
↓ 1 callersFunctionget_attribute
(attr: &Attribute)
generator/src/parse_derive.rs:67
↓ 1 callersMethodget_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 callersMethodhandle
( &self, ast: Vec<OptimizedRule>, rule: String, input: String, sender:
debugger/src/lib.rs:236
↓ 1 callersMethodincrement_depth
(&mut self)
pest/src/parser_state.rs:143
↓ 1 callersMethodinit
(self, context: &mut Cli)
debugger/src/main.rs:322
↓ 1 callersMethodinto_miette
Turns an error into a [miette](crates.io/miette) Diagnostic.
pest/src/error.rs:690
↓ 1 callersFunctioniter_all_pairs
(pairs: pest::iterators::Pairs<autocorrect::Rule>)
grammars/benches/json.rs:98
↓ 1 callersMethoditer_top_down
Returns the iterator that steps the expression from top to bottom.
meta/src/ast.rs:107
↓ 1 callersMethoditer_top_down
Returns a top-down iterator over the `OptimizedExpr`.
meta/src/optimizer/mod.rs:168
↓ 1 callersMethodlbp
Left-Binding-Power "describes the symbol's precedence in infix form (most notably, operator precedence)"
pest/src/pratt_parser.rs:384
↓ 1 callersMethodled
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 callersFunctionleft_recursion
(rules: HashMap<String, &'a ParserNode<'i>>)
meta/src/validator.rs:634
↓ 1 callersMethodlen
(&self)
pest/src/iterators/flat_pairs.rs:101
↓ 1 callersMethodlen
(&self)
pest/src/iterators/pairs.rs:418
↓ 1 callersMethodlen
(&self)
pest/src/iterators/tokens.rs:88
↓ 1 callersMethodline_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 callersMethodlist
(&mut self)
debugger/src/main.rs:99
↓ 1 callersMethodlist_breakpoints
Returns a list of all breakpoints.
debugger/src/lib.rs:229
↓ 1 callersMethodload_grammar
Loads a grammar from a file.
debugger/src/lib.rs:152
↓ 1 callersMethodload_grammar_direct
Loads a grammar from a string.
debugger/src/lib.rs:167
← previousnext →101–200 of 1,009, ranked by callers