I have a Boolean expression for example (var1 = 10 and var2 > 5) or var3 < 100
.
I want to write an algorithm for syntax checking but I need to build the grammar first and then I need to construct a parse table.
Can anyone please give a clue on the grammar?