This is another in a series of some ambiguities and improvements that I'm finding with the newest version of trparse with the --ambig option to display ambiguous parses.
1) The two parse trees for Decision d=79 (rule unannReferenceType) are ambiguous for alts 1 and 2 at "S" in input "S s = new S();. "S" in either alt is a typeIdentifier -> Identifier. It's all the same thing: adotIdChain: identifier ('.' identifier)*;`.
This is another in a series of some ambiguities and improvements that I'm finding with the newest version of trparse with the
--ambig
option to display ambiguous parses.Input: in.txt
Ambig trees:
unannReferenceType/unannClassOrInterfaceType/unannTypeVariable
From the JLS20,
Notes
1) The two parse trees for Decision d=79 (rule unannReferenceType) are ambiguous for alts 1 and 2 at "S" in input "S s = new S();
. "S" in either alt is a typeIdentifier -> Identifier. It's all the same thing: a
dotIdChain: identifier ('.' identifier)*;`.