Update of /cvsroot/monetdb/pathfinder/compiler/semantics
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv2478/semantics
Modified Files:
Tag: XQuery_0-16
normalize.brg
Log Message:
Until now, document managenment functions could not be called from
user-defined functions (`docmgmt' is not a subtype of `item*').
Similar in spririt to the `declare updating function' syntax in the
W3C Update Facility, we now have the syntax extension
declare document management function foo(...)
{
...
};
That sets the return type `docmgmt*' for the respective function.
(I have the magic ability to foresee Peter's reactions on lengthy
syntax such as `declare document management function'. Based on my
predictive abilities, I also included the short-hand `declare
docmgmt function' for Peter's convenience. ;-))
Index: normalize.brg
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/semantics/normalize.brg,v
retrieving revision 1.14
retrieving revision 1.14.2.1
diff -u -d -r1.14 -r1.14.2.1
--- normalize.brg 16 Jan 2007 23:52:37 -0000 1.14
+++ normalize.brg 14 Feb 2007 10:27:13 -0000 1.14.2.1
@@ -199,6 +199,7 @@
%term recursion = 126
%term seed = 127
%term xrpc = 128
+%term docmgmt_ty = 129
%%
@@ -601,6 +602,10 @@
/* Pathfinder extension: XRPC */
XRPCCall: xrpc (Expr, FunctionCall) = 246 (10);
+/* Pathfinder extension: document management function declarations */
+FunctionDeclaration: fun_decl (fun_sig (OptParamList_,
+ seq_ty (docmgmt_ty (nil))),
+ OptExpr) = 247 (10);
%%
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins