[Versa] splitting the grammar

Jeremy Kloth jeremy.kloth at fourthought.com
Mon Sep 26 12:08:45 MDT 2005


On Monday 26 September 2005 12:05 pm, Michael Olson wrote:
> This thought has been bouncing around in my head for a little while and
> Uche's last recommendation of using '@' as a symbol for function
> references has prompted me to bring it up.
>
> What about splitting what I recently posted as the EBNF into two
> separate grammars.
>
> The fist is a language neutral binding language (I think something
> similar was mentioned on the list) that only deals with setting up a
> query.  It would look something like the declaration section of the
> current grammar.  The difference being is everything after the last ";"
> would not be parsed but returned as an opaque string.
>
> Then versa as a language would start at the production called "query"
> and encompass all of the rest.
>
> My reasonings are:
>
> 1)  now we could use this binding language for other queries such as
> XPath
> 2)  by separating the grammars we are free to reuse symbols.  In this
> case the '@' is fair game again, and we could go back to "=" for
> equality (I think)
> 3)  We really do have two separate languages here.
>

So, alot like XPointers?  Either way, doesn't make any difference to me.

-- 
Jeremy Kloth
Fourthought, Inc.
http://fourthought.com/
http://4suite.org/


More information about the Versa mailing list