reaver-project / vapor

Vapor is a language made as a part of the Reaver Project effort. The name has originated as a word play on a word "vaporware" - the author often called this language a "vaporlang", and later decided to keep that name.
Other
5 stars 4 forks source link

Eradicate asserts caused by unsupported constructs in input code #15

Open griwes opened 6 years ago

griwes commented 6 years ago

All invalid constructs should cause a meaningful error presented to the user and not a runtime assertion. There's some asserts that are to stay, but probably in a more helpful way (so that the compiler ICEs, not just uses the generic assert macro), but all things that are simply not allowed should cause an error that's easy to be interpreted.