-
I put the Lox grammar in Langium playground and found that the member call to access class member failed. How to write the correct rule to access class member? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
in the playground you cannot implement scoping. so i would consider this expected |
Beta Was this translation helpful? Give feedback.
-
@ZCH2005 we have a guide on our website that explains how the lox scoping works with links to its implementation. Note that these scoping rules are not part of the grammar but defined in code as they go beyond the logic that can be expressed using EBNF. |
Beta Was this translation helpful? Give feedback.
in the playground you cannot implement scoping. so i would consider this expected