www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/02/13/21:59:51

From: "Bryan Russell" <BRYAN-R AT mis DOT scitec DOT com DOT au>
Organization: SCITEC LIMITED
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Date: Tue, 14 Feb 1995 12:43:48 +1100
Subject: Flex rules

I have a Lex source file I need in a project I working on that as a rule :

		[A-Z][A-Za-z0-9_]

This causes a unknown rule error when passed through Flex but appears to work 
ok with the lex on HP-UX. If I change it to :

		[A-Z][_A-Za-z0-9]

It passes through Flex OK, but the otherwise unchanged source when compiled 
appears not to work ( works fine when compiled on the unix machine)

To my way of thinking the two rules above should mean the same thing can anyone 
confirm this and perhaps tell me why the original fails?

Thanks,


Bryan Russell                      Net : bryan-r AT mis DOT scitec DOT com DOT au
Technical Support Specialist     Phone : +61 2 428 9570    _--_|\
SCITEC LIMITED                     Fax : +61 2 428 9988   /      \
3 Apollo Place, Lane Cove, NSW 2066                       \_.--._*
AUSTRALIA                                                       v

- Raw text -


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