Update of /cvsroot/monetdb/pathfinder/compiler/semantics
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv26738/compiler/semantics

Modified Files:
        xquery_fo.c 
Log Message:
* Algebra / MIL implementation of XQuery builtin function fn:translate.
* Erase trailing space chars.
* Introduce new algebra types for the document management functions:
   - aat_docmgmt
   - aat_str1
   - aat_str2
* Algebra implementation of the following document management functions:
   - pf:add-doc(str,str)
   - pf:add-doc(str,str, str)
   - pf:add-doc(str,str, int)
   - pf:add-doc(str,str, str, int)
   - pf:del-doc(str)
  mil code generation and runtime DocmgmTape function are still missing.


Index: xquery_fo.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/semantics/xquery_fo.c,v
retrieving revision 1.149
retrieving revision 1.150
diff -u -d -r1.149 -r1.150
--- xquery_fo.c 11 Jan 2008 10:47:16 -0000      1.149
+++ xquery_fo.c 18 Jan 2008 16:11:39 -0000      1.150
@@ -1060,7 +1060,8 @@
             .par_ty = (PFty_t[]) { PFty_opt (PFty_xs_string ()),
                                 PFty_xs_string (),
                                 PFty_xs_string () },
-            .ret_ty = PFty_xs_string () } } }
+            .ret_ty = PFty_xs_string () } },
+        .alg = PFbui_fn_translate }
 
 /* 7.5. Functions Based on Substring Matching */
     , /* fn:contains (string, string) as boolean */
@@ -1912,21 +1913,24 @@
         .arity = 2, .sig_count = 1, .sigs = { {
             .par_ty = (PFty_t[]) { PFty_xs_string (),
                                    PFty_xs_string () },
-            .ret_ty = PFty_docmgmt () } } }
+            .ret_ty = PFty_docmgmt () } },
+        .alg = PFbui_pf_add_doc }
     ,  /* pf:add-doc (string, string, string) as docmgmt */
       { .ns = PFns_lib, .loc = "add-doc",
         .arity = 3, .sig_count = 1, .sigs = { {
             .par_ty = (PFty_t[]) { PFty_xs_string (),
                                    PFty_xs_string (),
                                    PFty_xs_string () },
-            .ret_ty = PFty_docmgmt () } } }
+            .ret_ty = PFty_docmgmt () } },
+         .alg = PFbui_pf_add_doc_str }
     ,  /* pf:add-doc (string, string, int) as docmgmt */
       { .ns = PFns_lib, .loc = "add-doc",
         .arity = 3, .sig_count = 1, .sigs = { {
             .par_ty = (PFty_t[]) { PFty_xs_string (),
                                    PFty_xs_string (),
                                    PFty_xs_integer() },
-            .ret_ty = PFty_docmgmt () } } }
+            .ret_ty = PFty_docmgmt () } },
+        .alg =  PFbui_pf_add_doc_int }
     ,  /* pf:add-doc (string, string, string, int) as docmgmt */
       { .ns = PFns_lib, .loc = "add-doc",
         .arity = 4, .sig_count = 1, .sigs = { {
@@ -1934,12 +1938,14 @@
                                    PFty_xs_string (),
                                    PFty_xs_string (),
                                    PFty_xs_integer() },
-            .ret_ty = PFty_docmgmt () } } }
+            .ret_ty = PFty_docmgmt () } },
+        .alg =  PFbui_pf_add_doc_str_int }
     ,  /* pf:del-doc (string) as docmgmt */
       { .ns = PFns_lib, .loc = "del-doc",
         .arity = 1, .sig_count = 1, .sigs = { {
             .par_ty = (PFty_t[]) { PFty_xs_string () },
-            .ret_ty = PFty_docmgmt () } } }
+            .ret_ty = PFty_docmgmt () } },
+        .alg = PFbui_pf_del_doc }
     ,  /* pf:mil (string) as item* */
       { .ns = PFns_lib, .loc = "mil",
         .arity = 1, .sig_count = 1, .sigs = { {


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to