5 releases

0.1.13 Jan 1, 2021
0.1.12 Jan 1, 2021
0.1.11 Jan 1, 2021
0.1.1 Jan 1, 2021
0.1.0 Jan 1, 2021

#16 in #rich


Used in sully_peg

GPL-3.0-only

8KB
193 lines

sully_input: Rich input for parsers

This is a helper library for the sully_peg parser generator proc macro.

It exposes the following functionality:

  • Structs Input and Span parameterized on the lifetime of a string slice.
  • Terse debugging info for each structure (useful for embedding in tree nodes).
  • Trait Exact to allow type-defined parsing for structures with exact string representations (such as single characters or strs).

No runtime deps