conjure-cp-rules relating to grammar changes #1048
-
|
I am running into the issue once again where if I change anything in the grammar, I get loads of errors coming from files in |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Are these compiler errors or runtime panics? If it is the latter, could you list which tests fail? |
Beta Was this translation helpful? Give feedback.
-
|
TL;DR:
The solution is to write dedicated parser tests inside the Long term, we should:
|
Beta Was this translation helpful? Give feedback.
TL;DR:
essence_expr!macros call the parser at compile time. If the parser is broken for whatever reason (e.g. when you change the treesitter grammar, but haven't fully updated the Rust side of the parser yet), macros will fail to expand and cause compile time errors throughout the project.The solution is to write dedicated parser tests inside the
conjure-cp-essence-parsercrate, and use these to debug the parser;Then, when the parser works (at le…