From: "Bryan Russell" Organization: SCITEC LIMITED To: bodfish AT austen DOT notis DOT com (John Bodfish) Date: Fri, 17 Feb 1995 14:09:02 +1100 Subject: Re: Flex rules Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Return-Receipt-To: "Bryan Russell" > Bryan: > > I have a Lex source file .... > > [A-Z][A-Za-z0-9_] > > This causes a unknown rule error .... > Sorry, I have made two cockups in this question ( anyone know how to do a really embarressed look with the ':)' thing? ), although the question itself is still valid. The actual error was : "sclex.l", line 577: unrecognized rule and the rule was really [A-Z][A-Za-z0-9-_] which is supposed to read as Starting letter of A to Z, the rest of the leters consisting of A to Z or a to z or - or _. I now know why the resulting script compiler didn't work as the first line of the test source script had a '-' in it. Is there some sort of special delimiter to include '-' in the rule or should the context sort it out? I am using FLEX 2.4.7. 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