Question on sgml lex file

Thane Plambeck (thane@kothreat.com)
Fri, 31 Jan 1997 21:33:33 -0800


Message-Id: <199702010623.WAA22984@shellx.best.com>
From: "Thane Plambeck" <thane@kothreat.com>
To: <connolly@www10.w3.org>
Cc: <www-html@www10.w3.org>
Subject: Question on sgml lex file
Date: Fri, 31 Jan 1997 21:33:33 -0800

I'm trying to run the sgml-lex input (sgml.l) through lex and
get an error.

Both flex and Mortice Kern System's lex seem to choke on 


 /* abcd -- data characters */
([^<&]|(<[^<&a-zA-Z!->?])|(&[^<&#a-zA-Z]))+|.	{
                                  TOK(tokF, tokObj, SGML_DATA, yytext,
yyleng);
				}


The error I get is "Syntax error near `<'

Is there possibly something wrong with this regular expression, or am
I missing something?

Thanks for any thoughts you may have on this.

Thane Plambeck
thane@kothreat.com