The Display impl for Simple shows raw output and expectations, which is awkward for whitespace, such as '\n':
Example:
use chumsky::primitive::{end, just};
use chumsky::Parser;
type Error = chumsky::error::Simple<char>;
fn main() {
match parser().then_ignore(end()).parse("\nblah") {
Ok(_) => panic!("Should not happen."),
Err(es) => {
for e
💡 Build your own programming language! A C++17 PEG parser generator supporting parser combination, memoization, left-recursion and context-dependent grammars.
Currently we only report an error when the entry credit balance is 0. whatsitlike on the discord suggested that we should provide a warning if funds are running low, perhaps with a config configurable threshold.
The
Displayimpl forSimpleshows raw output and expectations, which is awkward for whitespace, such as '\n':Example: