Commit graph

5 commits

Author SHA1 Message Date
e3fa3500d4 Switch TableLit and Program to BoundedSeparated 2022-11-21 23:54:30 +01:00
03e7f10739 Satisfy warnings 2022-11-20 22:16:10 +01:00
6533c9dcf7 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 21:09:59 +01:00
2be47871da Add "module" program variant 2022-11-20 18:10:15 +01:00
3e2f118e2e Move program ast into separate file 2022-11-19 11:02:36 +01:00