[antlr-interest] Re: Representing state in lexer

Anthony W Youngman Anthony.Youngman at ECA-International.com
Wed May 14 08:02:06 PDT 2003


What is it non-deterministic with? In other words, what other construct
recognised by the lexer could a PATTERN be confused with?

You will have to define an unquoted pattern as a subset of that other
construct, and then use $settype to change the type to PATTERN if that's
what you've got.

Cheers,
Wol

-----Original Message-----
From: cgodfrey86 [mailto:cgodfrey at epnet.com] 
Sent: 14 May 2003 15:56
To: antlr-interest at yahoogroups.com
Subject: [antlr-interest] Re: Representing state in lexer


Thank you for the suggestion.

The main issue that I am running into with this is that a PATTERN 
token can appear either inside or outside of quotes - so I won't 
recognize a PATTERN outside of quotes. When I try and define it 
without quotes, I have lexical nondeterminism

PATTERN : QUOTE (ALLOWCHARS)+ QUOTE ;





 

Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/ 



 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

-------------- next part --------------
This transmission is intended for the named recipient only. It may contain private and confidential information. If this has come to you in error you must not act on anything disclosed in it, nor must you copy it, modify it, disseminate it in any way, or show it to anyone. Please e-mail the sender to inform us of the transmission error or telephone ECA International immediately and delete the e-mail from your information system.

Telephone numbers for ECA International offices are: Sydney +61 (0)2 9911 7799, Hong Kong + 852 2121 2388, London +44 (0)20 7351 5000 and New York +1 212 582 2333.


More information about the antlr-interest mailing list