ditrit / OGrEE-CLI

CLI for OGrEE
Mozilla Public License 2.0
3 stars 0 forks source link

New parser #156

Closed GeremWD closed 1 year ago

GeremWD commented 1 year ago

Replaces the old nex/goyacc parser with a recursive parser implemented from scratch in go. This allows to have better parsing errors (even though the error messages have not been fully tested yet and should still be tuned). This also allows to unit test the components of the parser. For now, the tests cover most of the basic features, but many cases are still not covered, so more tests should be added in the future.

The new parser expects a slightly different syntax :