[antlr-interest] Re: "protected" lexer rules

Terence Parr parrt at cs.usfca.edu
Wed Nov 10 10:56:45 PST 2004


On Nov 10, 2004, at 9:15 AM, micheal_jor wrote:
> --- In antlr-interest at yahoogroups.com, "lgcraymer" <lgc at m...> wrote:
>>
>> I would agree.  Really, the basic idea is more that of a syllable that
>> may be included in a word.  I'm not too keen on "fragment" either--you
>> break things into fragments, you don't build things up from them.
>
> We are discussing rules that are to be used to specify patterns for
> matching a part, segment, or fragment of lexical tokens. The complete
> lexical token is perhaps not "built" but "assembled" from these
> pieces, morsels, tidbits, smidgens, bits or fragments. ;-)
>
> Lubos mentioned sublexeme in a later post in the thread. I liked that
> actually but, very few lexical tokens have lexemes - usually only
> identifiers and literals. The rules only occasionally define a
> sublexeme. What they really define is a fragment of the input that
> matches a lexical token.
>
> I still like "fragment" best but, "smidgen" is so HarryPottery and
> LordsOfTheRingish ;-)

Hi Michael,

The current 3.0 prototype uses fragment as I like it and it pisses off 
the least number of people I think ;)

Ter
--
CS Professor & Grad Director, University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com
Cofounder, http://www.knowspam.net enjoy email again!





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

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





More information about the antlr-interest mailing list