happy
happy copied to clipboard
Happy should error out on duplicate productions
-
Consider the following short grammar:
foo :: { Int } : int { $1 } foo :: { Int } : int { $1 + 4 }Happy should not accept this - it should complain that I've defined
footwice. Right now, it just silently picks one of the two. -
Consider the following shorter grammar:
foo :: { Int } foob : int { $1 }Happy should not accept this - it should complain that the name
foobdoes not match the expected namefoo. Right now, it just usesfooand ignoresfoobcompletely.