Update of /cvsroot/monetdb/pathfinder/compiler/semantics
In directory
sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv29164/compiler/semantics
Modified Files:
Tag: M5XQ
xquery_fo.c
Log Message:
propagated changes of Friday Dec 04 2009
from the XQFT branch to the M5XQ branch
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009/12/04 - sjoerd: compiler/semantics/xquery_fo.c,1.190.2.2
propagated changes of Friday Dec 04 2009
from the development trunk to the XQFT branch
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009/12/04 - jflokstra: compiler/semantics/xquery_fo.c,1.194
Implemented translation to a MIL function of the following new tijah
functions.
- tijah:terms(element*) as string*
- tijah:terms(element*,node) as string*
- tijah:tf-all(string) as integer
- tijah:tf-all(string,node) as integer
- tijah:tf(element*,string) as integer
- tijah:tf(element*,string,node) as integer
- tijah:fb-terms(element*) as string*
- tijah:fb-terms(element*,node) as string*
The main MIL functions are still empty and Henning will fill te blanks.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Index: xquery_fo.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/semantics/xquery_fo.c,v
retrieving revision 1.184.2.7
retrieving revision 1.184.2.8
diff -u -d -r1.184.2.7 -r1.184.2.8
--- xquery_fo.c 19 Nov 2009 13:51:20 -0000 1.184.2.7
+++ xquery_fo.c 4 Dec 2009 14:49:36 -0000 1.184.2.8
@@ -3002,6 +3002,60 @@
.par_ty = (PFty_t[]) { PFty_xs_integer () },
.ret_ty = PFty_xs_integer () } },
.alg = PFbui_tijah_resultsize }
+ , /* tijah:terms(element*) as string* */
+ { .ns = PFns_tijah, .loc = "terms",
+ .arity = 1, .sig_count = 1, .sigs = { {
+ .par_ty = (PFty_t[]) { PFty_star (PFty_xs_anyElement ()), },
+ .ret_ty = PFty_star (PFty_xs_string ()) } },
+ .alg = PFbui_tijah_terms }
+ , /* tijah:terms(element*,node) as string* */
+ { .ns = PFns_tijah, .loc = "terms",
+ .arity = 2, .sig_count = 1, .sigs = { {
+ .par_ty = (PFty_t[]) { PFty_star (PFty_xs_anyElement ()),
+ PFty_xs_anyNode () },
+ .ret_ty = PFty_star (PFty_xs_string ()) } },
+ .alg = PFbui_tijah_terms_o }
+ , /* tijah:tf-all(string) as integer */
+ { .ns = PFns_tijah, .loc = "tf-all",
+ .arity = 1, .sig_count = 1, .sigs = { {
+ .par_ty = (PFty_t[]) { PFty_xs_string () },
+ .ret_ty = PFty_xs_integer () } },
+ .alg = PFbui_tijah_tfall }
+ , /* tijah:tf-all(string,node) as integer */
+ { .ns = PFns_tijah, .loc = "tf-all",
+ .arity = 2, .sig_count = 1, .sigs = { {
+ .par_ty = (PFty_t[]) { PFty_xs_string (),
+ PFty_xs_anyNode () },
+ .ret_ty = PFty_xs_integer () } },
+ .alg = PFbui_tijah_tfall_o }
+ , /* tijah:tf(element*,string) as integer */
+ { .ns = PFns_tijah, .loc = "tf",
+ .arity = 2, .sig_count = 1, .sigs = { {
+ .par_ty = (PFty_t[]) { PFty_star (PFty_xs_anyElement ()),
+ PFty_xs_string ()},
+ .ret_ty = PFty_xs_integer () } },
+ .alg = PFbui_tijah_tf }
+ , /* tijah:tf(element*,string,node) as integer */
+ { .ns = PFns_tijah, .loc = "tf",
+ .arity = 3, .sig_count = 1, .sigs = { {
+ .par_ty = (PFty_t[]) { PFty_star (PFty_xs_anyElement ()),
+ PFty_xs_string (),
+ PFty_xs_anyNode () },
+ .ret_ty = PFty_xs_integer () } },
+ .alg = PFbui_tijah_tf_o }
+ , /* tijah:fb-terms(element*) as string* */
+ { .ns = PFns_tijah, .loc = "fb-terms",
+ .arity = 1, .sig_count = 1, .sigs = { {
+ .par_ty = (PFty_t[]) { PFty_star (PFty_xs_anyElement ()) },
+ .ret_ty = PFty_star (PFty_xs_string ()) } },
+ .alg = PFbui_tijah_fbterms }
+ , /* tijah:fb-terms(element*,node) as string* */
+ { .ns = PFns_tijah, .loc = "fb-terms",
+ .arity = 2, .sig_count = 1, .sigs = { {
+ .par_ty = (PFty_t[]) { PFty_star (PFty_xs_anyElement ()),
+ PFty_xs_anyNode () },
+ .ret_ty = PFty_star (PFty_xs_string ()) } },
+ .alg = PFbui_tijah_fbterms_o }
#endif
#ifdef HAVE_GEOXML
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins