I\'m trying to implement a simple Java like language parser in sablecc, although I\'m constantly running into shift-reduce / reduce-reduce problems when implementing if, while and block statements.
In my language i can write a = 1 b = 2 if true { } else { } if true { } **Here is the problem** else {} My grammer doesnt support newlines between statements. An else can only be used with an if.