You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to implement custom language plugin (Linden Script Language) for IntelliJ IDE. I already implemented parsing using YACC before, but have a problem while trying to do the same using GrammarKit.
The language has XYZ vector type, you can create vector using such construction:
<X, Y, Z>
<1.0, 2.0, 3.0>
But this construction is also valid:
<1, 2 < 3 > 4, 5> // same as <1, (2 < 3 > 4), 5>
But I don't know how to specify such syntax using GrammarKit. Here's short BNF file for example:
I'm trying to implement custom language plugin (Linden Script Language) for IntelliJ IDE. I already implemented parsing using YACC before, but have a problem while trying to do the same using GrammarKit.
The language has XYZ vector type, you can create vector using such construction:
But this construction is also valid:
But I don't know how to specify such syntax using GrammarKit. Here's short BNF file for example:
Everything works fine like that:
But shows errors in such case, without parentheses:
Can someone help me please and tell how to make it work?
The text was updated successfully, but these errors were encountered: