[Versa] Problem with splitting the grammar
Michael Olson
Mike.Olson at fourthought.com
Tue Sep 27 14:07:06 MDT 2005
If we split the grammar, then the production (in bind) for a function
definition must be something like
@function function_name = ([^;])+ ';'
Basically, the bind parser does not know the grammar of the function,
so it just gives it everything.
This causes a problem back in versa land for a query that looks like
@prefix ft = foo
@function myFunc () = ft:s - ft:p -> ft:o;
@prefix ft = bar;
myFunc()
Because "myFunc" would not be parsed until after the complete bind
expression is parsed.
Is this bad?
We could just disallow redefining, probably the best.
Mike
------------------------------------------------------------------------
-----------------
Mike Olson Principal
Consultant
mike.olson at fourthought.com +1 720 253 4662
Fourthought, Inc.
http://Fourthought.com
PO Box 270590, http://4Suite.org
Louisville, CO 80027-5009, USA
XML strategy, XML tools, knowledge management
More information about the Versa
mailing list