cvs commit: hugs98/src parser.y

8 Oct
2003
8 Oct
'03
10:09 a.m.
ross 2003/10/08 07:09:08 PDT Modified files: src parser.y Log: Use an empty nonterminal rather than error for inserting an initial virtual { in the module, to fix a bug reported by Iavor. The old code was accepting a module with no module header and an incomplete last decl like f ( as a legal parse (because "topDecls; VARID (" -> error -> "{"), leading to an internal error back in parseInput. Unfortunately the same error still occurs with things like module Bug where f x = x where g ( due to a similar problem with the "end" nonterminal, but I don't know how to fix that. Revision Changes Path 1.43 +3 -3 hugs98/src/parser.y
8008
Age (days ago)
8008
Last active (days ago)
0 comments
1 participants
participants (1)
-
ross@glass.cse.ogi.edu