Russell Whitaker wrote:
On Mon, 20 Dec 2004, willett wrote:
program file attached is a program missing a "}" which should get compilation error, but which compiles without errors and when run, gets a "Segmentation fault" and quits.
compiler saw { { }, he wanted { } { }
found that problem the other day, but since it is not a bug, sat down and wrote a non-distructive tool that might be useful: it checks for matching (* *), { }, [ ], ( ), " ", and ' '
All that is required is that the lexical front end detect '{' while absorbing a comment (and possibly '(*' also, depending on whether or not you are allowing mixed comments). I thought that was already in there, in fact. If found, it should emit a warning about possible earlier comment unclosed.