Path: utzoo!mnetor!uunet!amdahl!dlb!megatest!djones From: djones@megatest.UUCP (Dave Jones) Newsgroups: comp.lang.c Subject: Re: LEX Message-ID: <248@goofy.megatest.UUCP> Date: 5 Feb 88 12:18:19 GMT References: <3703@megaron.arizona.edu> Organization: Megatest Corporation, San Jose, Ca Lines: 13 In article <260@nyit.UUCP>, michael@nyit.UUCP (Michael Gwilliam) writes: > I'm writting a C like language to discribe data structures. When I > was writting the tokenizer using LEX and I got intrigued by a little > problem. Is it possible to write a regular expression that will > transform a /* comment */ into nothing? It is indeed intriguing. I don't think you can write any LR(k) context-free grammar to "transform it" into anything. - djones