Are C# and Java Grammars LALR(x)?
问题 I wonder if C# and Java grammars are LALR(x)? If yes, what's the value of x? Edit: After accepting the true answer, I think it is better to change the Q in this way: Is there any LALR(x) parser that could parse current releases of Java (version 7) or C# (version 4)? If yes, what is the value of x? 回答1: You can't ask this question without first designating a specific grammar for a langauge, as some grammars may be, and some may not. Perhaps you mean the Java grammar as published in recent Java