Hello there, I've been trying to figure out exactly what I'm doing wrong here. If anyone can help I'd be greatly appreciative.
My grammar file contains a definition for expressions, assignments, statements, and for loops. I am trying to use a label in the for loop to describe parts of the for loop. I am receiving an error about my label: "label 'opForCountLeft' assigned to a block which is not a set".
forLoop
: FOR opForCountLeft=(expression | assignment) TO opForCountRight=expression op=statement* NEXT
What am I doing wrong here?
Thanks for your time.