I’m new to Antlr but I’m trying to change some of the Grammar from my existing project. The example of the grammar looks like this The grammar is supposed to parse something like this a=10 AND s=1 AND s=2 or ((a=9 AND s=1) AND s=2). The question is is it possible to ignore anything that’s not s={ANYTHING}. So from the
Tag: antlr3
Nested Boolean Expression Parser using ANTLR
I’m trying to parse a Nested Boolean Expression and get the individual conditions within the expression separately. For e.g., if the input string is: (A = a OR B = b OR C = c AND ((D = d AND E = e) OR (F = f AND G = g))) I would like to get the conditions with the