Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!samsung!uunet!mcsun!goya!turia.dit.upm.es!esink From: esink@turia.dit.upm.es (Eric Wayne Sink) Newsgroups: comp.lang.c Subject: ANSI Parsing/Preproc questions Message-ID: <383@goya.dit.upm.es> Date: 15 Oct 90 10:08:44 GMT Sender: newsadm@goya.dit.upm.es Reply-To: esink@turia.dit.upm.es (Eric Wayne Sink) Organization: Dept. Ingenieria de Sistemas Telematicos, dit, upm, Madrid, Spain Lines: 27 What does ANSI say about comments within tokens ? ie, is the following legal ? int variable; vari/* in the middle */able = 5; Also, does ANSI say anything about the preprocessor contructing tokens ? I can't think of an example of this right now, but it would be something like: #define macro(X) variX /* obviously, some operator is needed above, if this is legal at all */ macro(5) = 3; /* expands to: vari5 = 3 */ Finally, can anyone send me/point me to examples of C code which causes problems for parsers/preprocessors ? I've heard something of a C torture test... Thanks in advance, and please email iff these questions have been hashed over too many times. (if appropriate, perhaps someone could email FAQ to me ?) Eric W. Sink esink@turia.dit.upm.es