[Versa] Updated ebnf with no conflicts
Jeremy Kloth
jeremy.kloth at fourthought.com
Mon Sep 26 10:41:54 MDT 2005
On Monday 26 September 2005 10:34 am, Michael Olson wrote:
> On Sep 26, 2005, at 10:20 AM, Jeremy Kloth wrote:
> > On Monday 26 September 2005 10:13 am, Michael Olson wrote:
> >> Does it work for multiple characters? ie
> >>
> >> <symbol>'<='</symbol>
> >
> > Not yet, but I really want to navigate towards eliminating the need
> > for a
> > separate lexer section, that is, all patterns are defined inline. To
> > follow
> > bison's lead, that would be a symbol of "[a-z]+" would automatically be
> > translated into an anonymous (well, not named) token behind the scenes.
> > However its not there yet.
>
> My feeling is that would be hard WRT states (which I use heavily).
>
> However, it would be great to be able to control the states from the
> grammar section so maybe that is the solution....
>
Well, if you are using states (generally speaking), you are going to need the
more powerful interface to the lexer, for now. Unless we can come up with an
XML grammar for controlling the lexer in a rule's code (or something) block.
--
Jeremy Kloth
Fourthought, Inc.
http://fourthought.com/
http://4suite.org/
More information about the Versa
mailing list