diff src/monoize.sml @ 263:02e1870a0516

Monoize OFFSET
author Adam Chlipala <adamc@hcoop.net>
date Sun, 31 Aug 2008 16:11:15 -0400
parents a6cb33f49366
children 35ed669a253f
line wrap: on
line diff
--- a/src/monoize.sml	Sun Aug 31 16:10:20 2008 -0400
+++ b/src/monoize.sml	Sun Aug 31 16:11:15 2008 -0400
@@ -752,6 +752,16 @@
 
           | L.EFfi ("Basis", "sql_no_offset") =>
             ((L'.EPrim (Prim.String ""), loc), fm)
+          | L.EFfiApp ("Basis", "sql_offset", [e]) =>
+            let
+                val (e, fm) = monoExp (env, st, fm) e
+            in
+                (strcat loc [
+                 (L'.EPrim (Prim.String " OFFSET "), loc),
+                 (L'.EFfiApp ("Basis", "sqlifyInt", [e]), loc)
+                 ],
+                 fm)
+            end
 
           | L.EFfi ("Basis", "sql_eq") =>
             ((L'.EPrim (Prim.String "="), loc), fm)