Add parser README, some parser fixups

This commit is contained in:
JT
2021-09-09 06:54:27 +12:00
parent 1e09a8e5ff
commit 2d7192e390
6 changed files with 153 additions and 19 deletions

View File

@ -16,6 +16,7 @@ pub enum Type {
Number,
Nothing,
Record(Vec<String>, Vec<Type>),
Table,
ValueStream,
Unknown,
Error,
@ -34,6 +35,7 @@ impl Display for Type {
Type::Int => write!(f, "int"),
Type::Range => write!(f, "range"),
Type::Record(cols, vals) => write!(f, "record<{}, {:?}>", cols.join(", "), vals),
Type::Table => write!(f, "table"),
Type::List(l) => write!(f, "list<{}>", l),
Type::Nothing => write!(f, "nothing"),
Type::Number => write!(f, "number"),