#parser #parser-combinator #token-parser

nightly no-std binator_core

This contains all cores traits needed to work with binator

3 releases

0.0.2 Mar 13, 2024
0.0.1 Mar 13, 2024
0.0.0 Mar 13, 2024

#21 in #token-parser

Download history 6/week @ 2024-07-08 17/week @ 2024-07-15 4/week @ 2024-07-22 7/week @ 2024-07-29 18/week @ 2024-08-05 4/week @ 2024-08-12 3/week @ 2024-08-19 4/week @ 2024-08-26 5/week @ 2024-09-02 4/week @ 2024-09-16 34/week @ 2024-09-23 9/week @ 2024-09-30 14/week @ 2024-10-14

57 downloads per month
Used in 5 crates

Zlib license

54KB
1.5K SLoC

Terminology:

Name Description
Stream A structure that would produce Item when asked
Parser Something that will check that Item produced by Stream are correct
Context A structure that will manage Failure from Parser
Token Represent what a Parser return for Success
Atom A structure that contain information about the Failure or Error from a Parser
Element Something, generally an enumeration, that will contain all different kind of Atom
Parsed Enumeration that indicate result of a Parser
Parse A trait that all Parser implement, used to use a Parser
Failure Indicate a Parser didn't validate the input
Success Indicate a Parser validate the input
Error Indicate a Parser encounter an irrecoverable error.
Streaming A trait that Stream implement to make their job
Item Item produced by a Stream, generally just an u8
Span A delimited part of the Stream
Contexting A trait that all Context will implement, used to accumulate failure of Parser

Dependencies

~0.6–2.9MB
~49K SLoC