GrammaticalFramework / gf-core

Grammatical Framework core: compiler, shell & runtimes
https://www.grammaticalframework.org
Other
129 stars 35 forks source link

Improve syntax error messages #160

Closed anka-213 closed 1 year ago

anka-213 commented 1 year ago

With this patch you will get error messages like these:

example.gf:1:21:
   Syntax error:
     Unexpected token '}'.
     Expected one of:
     - '{'
     - 'open'
     - an identifier

instead of the old

example.gf:1:21: syntax error
anka-213 commented 1 year ago

I also fixed the broken CI, so that I can actually check that it works

inariksit commented 1 year ago

Thanks! Better error messages is always great.

Do you know why are 2 checks queued in the CI?

anka-213 commented 1 year ago

it looks like it’s trying to run on a too old version of macos that is no longer available