Crate rusty_parser

source ·

Macros§

  • Or combinator of parsers Example: or_!( parser_a, or_b, or_c )
  • Sequence of parsers Example: seq!( parser_a, and_then_b, and_then_c )

Structs§

  • Box<dyn Parser> wrapper
  • Dictionary using trie implementation uses BTreeMap; O(log(N)) search
  • Dictionary using trie implementation uses HashMap; O(1) search
  • struct that holds the result of parsing output: parsed data it: iterator after parsing
  • Rc<Parser> wrapper
  • RefCell<Parser> wrapper

Traits§

  • Parser trait all parsers must implement this trait

Functions§

  • This Parser will always success and return the clone of given output.
  • parser that success if reached end of input
  • This Parser will always fail.
  • Check one character is equal to the given character.
  • This Parser will use the closure to parse the input.
  • Check one character is in the given range.
  • This Parser will compare the input string starts with the given string. ‘string’ may be a iterator returned by ‘chars()’, etc. string must be cheaply cloneable. since iterator from ‘chars()’ is borrowed reference to the original string, it is cheaply cloneable.