golemcloud / golem

Golem is an open source durable computing platform that makes it easy to build and deploy highly reliable distributed systems.
https://learn.golem.cloud/
Apache License 2.0
521 stars 59 forks source link

Tokenise before feeding to our parser, and avoid `spaces()` and reduce `attempts` #971

Open afsalthaj opened 1 month ago

afsalthaj commented 1 month ago

This will also help us reduce even more number of attempts and backtracking!

jdegoes commented 1 month ago

To avoid making the end-user suffer for our convenience, the tokenizer must keep track of line/column numbers (actually, ranges, per token), so that errors can have sensible and contextual reporting.