From: utzoo!decvax!cca!lacasse@RAND-UNIX@sri-unix
Newsgroups: net.unix-wizards
Title: Re: Lex query
Article-I.D.: sri-unix.2315
Posted: Wed Jul 28 23:26:31 1982
Received: Thu Jul 29 06:15:23 1982

Date: Sunday, 27 Jun 1982 15:55-PDT
Re:
    Our v7 Lex is recognizing  "^"  as beginning of line
    in the rules section, but not in the definitions section.

Put (parenthesis) around your definition, viz:

     name            (^[a-zA-Z])
     %%
     {name}          {action...}

In fact, it is good practice to put parenthesis around all lex definitions
if you wish to avoid this and other bugs.  More serious are certain bugs
surrounding the use of yyless, REJECT, and look-aheads, when more than one
of these three act on the same piece of text.  Lex can delete one character
of input text.  Also, ^text will not match at the beginning of the file.
Would anyone who has debugged these please contact me.

	  Mark LaCasse
	  Rand Corporation
	  1700 Main Street
	  Santa Monica, CA 90406
	    213/393-0411