LEX

Dave Jones djones at megatest.UUCP
Fri Feb 5 22:18:19 AEST 1988


 
 In article <260 at nyit.UUCP>, michael at 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



More information about the Comp.lang.c mailing list