Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!netcom!rkitts From: rkitts@netcom.COM (Rick Kitts) Newsgroups: comp.lang.c Subject: Looking for broken code Message-ID: <1991Mar21.045505.22783@netcom.COM> Date: 21 Mar 91 04:55:05 GMT Sender: rkitts@netcom.COM (Rick Kitts) Distribution: ca Organization: Netcom - Online Communication Services UNIX System {408 241-9760 guest} Lines: 20 I am currently fiddline with YACC and LEX and trying to understand grammars, etc. As an exercise I have written a recognizer for C declarations, with plans to expand it to understand all of C. Anyway, I am looking for code which is syntactically correct, but semantically flawed. For example the following is syntactically correct when fed through a naked ANSI C grammar, but it is semantically incorrect: int a[](); (An array of functions is illegal I believe) What I want to do is run this through my little program and see how it barfs :-). Please, if you can, include a description of what exactly is wrong with the code. Thanks in advance. ---Rick rkitts@netcom.com