rustmax::nom

Module character

Source
Expand description

Character specific parsers and combinators

Functions recognizing specific characters

Modules§

  • Character specific parsers and combinators, complete input version.
  • Character specific parsers and combinators, streaming version

Structs§

Functions§

  • accept a str, but not a &[u8], unlike many other nom parsers.
  • Recognizes one character.
  • Recognizes one or more ASCII numerical characters: 0-9
  • Tests if byte is ASCII binary digit: 0-1
  • Recognizes zero or more spaces, tabs, carriage returns and line feeds.
  • Example
  • Recognizes one of the provided characters.
  • Recognizes one character and checks that it satisfies a predicate