From: utzoo!decvax!harpo!ihnss!ihps3!stolaf!ondich
Newsgroups: net.unix-wizards
Title: Lex query
Article-I.D.: stolaf.362
Posted: Mon Jun 14 16:49:03 1982
Received: Wed Jun 16 03:58:02 1982


Our v7 Lex is recognizing  "^"  as beginning of line
in the rules section, but not in the definitions section.
For example:

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

is not performing the action for lines beginning with a letter, 
but

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

is working fine.  Though not disastrous (I can simply use
the second form), this problem has led to some aesthetically
unpleasant code.  Is the problem typical?  Is it a bug?
Perhaps a feature?  Any enlightenment would be appreciated.

			Thanks,

				Jeff Ondich
				ihps3!stolaf!ondich