asoffer / Icarus

An experimental general-purpose programming language
Apache License 2.0
9 stars 2 forks source link

Emit error message for invalid block names. #40

Closed asoffer closed 3 years ago

asoffer commented 3 years ago

// The capital T causes a crash. if (condition) Then { ... }

perimosocordiae commented 3 years ago

Along these lines, a better error message for a missing block name would be great as well:

if (cond) { ... }
asoffer commented 3 years ago

It's true, although it might be nice to have a block bindable to -- or first or something to indicate that it must always be present and must always be the first block and would be implicit, so that if (cond) { ... } would be valid.