I would like to write more tests for errors although coverage is decent (for this particular case I think it matched on error text, and it happens to be the same only with less detail for file, line and position and emitted from the "wrong place". To do this testing right would require too much work at this point IMO. I would like to address adding more tests when making the next round of changes (moving more validation from lexer/parser).