Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!iuvax!pur-ee!uiucdcs!uiucdcsb!wsmith From: wsmith@uiucdcsb.cs.uiuc.edu Newsgroups: comp.lang.c Subject: Re: whats wrong with this lex grammer? Message-ID: <165600013@uiucdcsb> Date: Wed, 23-Sep-87 16:11:00 EDT Article-I.D.: uiucdcsb.165600013 Posted: Wed Sep 23 16:11:00 1987 Date-Received: Sat, 26-Sep-87 18:19:12 EDT References: <443@aucs.UUCP> Lines: 14 Nf-ID: #R:aucs.UUCP:443:uiucdcsb:165600013:000:224 Nf-From: uiucdcsb.cs.uiuc.edu!wsmith Sep 23 15:11:00 1987 This works well: nostarp ([^*]|\*[^)]) %% \(\*{nostarp}*\*\) return(PCOMMENT); /* normal comment */ \(\*{nostarp}* return(BADCOMMENT); /* unterminated comment */ Bill Smith wsmith@a.cs.uiuc.edu ihnp4!uiucdcs!wsmith