comments in lex
    Ray Reeves 
    ray at emacs.uucp
       
    Tue Jun 25 22:45:50 AEST 1985
    
    
  
I'm new to lex, and the first thing I tried wouldn't fly!
How do you recognise a PL/1 style comment?
This is what I did:
startcom	\/\*
endcom		\*\/
%%
{startcom}[^{endcom}]{endcom}	printf("%s","comment")
But negation doesn't take conjunctions, even when packaged like this.
What should I do?
-- 
Ray Reeves,
CCA-UNIWORKS,20 William St,Wellesley, Ma. 02181. (617)235-2600
emacs!ray at CCA-UNIX
    
    
More information about the Comp.unix
mailing list