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

Modified Files:
        logdebug.c 
Log Message:
Basic Algebra implementation for the fn:error functions (32 files edited).
Introduced a new operator on the logical level, namely la_error.
Operator la_error takes a BAT of strings as parameter (containing the error
message) and carry it all the way until the MIL level where the conditions are
checked and the mil if-statement is printed.

Disclaimer:
Most likely the switch-case clauses on the prop/ and opt/ directories
are not always treated correctly for the la_error operator, but a man has
to start from somewhere.


Index: logdebug.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/debug/logdebug.c,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -d -r1.81 -r1.82
--- logdebug.c  6 Dec 2007 22:41:33 -0000       1.81
+++ logdebug.c  10 Dec 2007 15:10:04 -0000      1.82
@@ -108,6 +108,7 @@
     , [la_fragment]         = "FRAGs"
     , [la_frag_union]       = "FRAG_UNION"
     , [la_empty_frag]       = "EMPTY_FRAG"
+    , [la_error]            = "!ERROR"
     , [la_cond_err]         = "!ERROR"
     , [la_nil]              = "nil"
     , [la_trace]            = "trace"
@@ -185,6 +186,7 @@
     , [la_fragment]         = "FRAG"
     , [la_frag_union]       = "FRAG_UNION"
     , [la_empty_frag]       = "EMPTY_FRAG"
+    , [la_error]            = "error"
     , [la_cond_err]         = "error"
     , [la_nil]              = "nil"
     , [la_trace]            = "trace"
@@ -377,6 +379,7 @@
         , [la_fragment]        = "#E0E0E0"
         , [la_frag_union]      = "#E0E0E0"
         , [la_empty_frag]      = "#E0E0E0"
+        , [la_error]           = "#C0C0C0"
         , [la_cond_err]        = "#C0C0C0"
         , [la_nil]             = "#FFFFFF"
         , [la_trace]           = "#FF5500"
@@ -920,6 +923,7 @@
         case la_proxy_base:
         case la_string_join:
         case la_dummy:
+        case la_error:
             PFarray_printf (dot, "%s", a_id[n->kind]);
             break;
 


-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to