Commit 2f99ae4
committed
add error states for parsing tree and AST
This adds error states for `parse::Expression`, `ast::Expression`
`ResolvedType` and `AliasedType`.
Error recovery introduced by `chumsky` parser
require some default states to recover to, which was represented before
with dummy values, like unit type for expression or alias with `error` name.
However, this kind of recovery is not desirable in case of further
analyzing of parse tree, because it would lead to unrecognazible errors
on analyzer.1 parent c3e5563 commit 2f99ae4
3 files changed
+172
-88
lines changed
0 commit comments