I currently have a lexeme priority adverb, but the priority does *not*
override the longest-first discipline, regardless of whether it is LTM
(longest token match) or LATM (longest acceptable token match). It only
breaks ties between different "longest" tokens.
This sometimes causes confusion, because users often want a higher
priority to mean "accept me first, REGARDLESS of length". I'm thinking
of creating a second kind of priority, one that implements this "strong"
idea of priority.
So call the tie-breaking priority scheme (the current one), "weak
priority". And call the other, which never accepts a lower priority
token over a higher one, regardless of the length, "strong priority".
My question to the list is, given that I've already used the priority
adverb to mean "weak priority", what nomenclature should I use? My
first inclination is to use the names I am using in this post. That is,
:lexeme ~ <say keyword> priority => 1
continues to mean "weak" priority, and so is a synonym for
:lexeme ~ <say keyword> weak priority => 1
but
:lexeme ~ <say keyword> strong priority => 1
now means "strong priority".
I am very interested in your comments and suggestions.
-- jeffrey
--
You received this message because you are subscribed to the Google Groups "marpa
parser" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.