tada/src/parser
Joscha b009a9c4ec Handle things separated by things differently
I noticed that programs like '{} would parse correctly while '{ } would
expect an inner element. This was because the leading space was actually
part of the element parser, which is a violation of the (as of yet
unspoken) rule that parsers should not parse surrounding whitespace.

Because whitespace whas treated differently from everywhere else and
because this implementation was wrong, I decided to reimplement it,
abstracting the concept of things separated by other things with
optional trailing things. I did this in such a way that surrounding
whitespace is not touched.
2022-11-20 20:25:41 +01:00
..
basic.rs Handle things separated by things differently 2022-11-20 20:25:41 +01:00
expr.rs Create each main parser only once 2022-11-19 20:56:10 +01:00
func_defs.rs Create each main parser only once 2022-11-19 20:56:10 +01:00
lit.rs Handle things separated by things differently 2022-11-20 20:25:41 +01:00
prefix.rs Create each main parser only once 2022-11-19 20:56:10 +01:00
program.rs Handle things separated by things differently 2022-11-20 20:25:41 +01:00
suffix.rs Create each main parser only once 2022-11-19 20:56:10 +01:00
table_constr.rs Handle things separated by things differently 2022-11-20 20:25:41 +01:00
table_destr.rs Handle things separated by things differently 2022-11-20 20:25:41 +01:00
var.rs Create each main parser only once 2022-11-19 20:56:10 +01:00