Closed ethindp closed 1 year ago
Update: so I thought this might be a lexical problem, but it doesn't appear so. I still get errors like:
error: Cannot find symbol `expression`
--> ada.gram:(141, 38)
|
141 | ((identifier ARROW)? (name | expression))
| ^^^^^^^^^^
The only change is that inline strings have been replaced with lexical tokens, like:
expression ->
relation ((AND_KEYWORD | (AND_KEYWORD THEN_KEYWORD) | OR_KEYWORD | (OR_KEYWORD ELSE_KEYWORD) | XOR_KEYWORD) relation)*;
The full grammar is here: ada.txt
cc @woutersl
Anyone able to reproduce this issue?
Update: the issue no longer occurs, so it was probably fixed in one of the newer releases.
The documentation indicates that the order of rules in a rules block is irrelevant, however I'm suffering this strange problem where the order of rules apparently does matter. I have this rule:
Yet himecc indicates that
expression
can't be found. (It does this for a huge number of other productions as well.) I declareexpression
as follows:And all the other rules that it claims it can't find are available, I'm just unsure why it can't find them.