www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/02/16/14:56:44

From: bodfish AT austen DOT notis DOT com (John Bodfish)
Subject: Re: Flex rules
To: BRYAN-R AT mis DOT scitec DOT com DOT au (Bryan Russell)
Date: Thu, 16 Feb 95 12:38:52 CST
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

Bryan:
> I have a Lex source file ....
> 		[A-Z][A-Za-z0-9_]
> This causes a unknown rule error ....

	I have run both of your rules thru flex & AIX's lex, and get the
same results: it works as I expect it to work, and it works the same on
both systems. I have never seen the "unknown rule" error you mention, either
(and I've seen a *lot* of flex errors!).

	What version of flex are you using? I'm using 2.4.7 as ported
to DOS (from the flx247bn.zip on ftp//omnigate.clarkson.edu) which I
assume is what you're using. I'm at maint2 of DJGPP, but I don't think
that matters.

	I wonder if your version of flex has some internationalizations,
or the POSIX support for internationalization, added to it? From the IEEE
standard (Std 1003.2-1992) I see that ranges in regular expressions
(the "-") "shall not be used in Strictly Conforming POSIX.2 Applications".
I wonder if that's your problem? I can't really tell without some sample
input and the whole lex file.

	Please send me (directly, not to the list) a lex input file that
demonstrates your problem, and some input to test with. When we get this
figured out, we'll post any interesting info to this list.

John Bodfish
bodfish AT notis DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019