Mercurial > urweb
comparison src/explify.sml @ 1294:b4480a56cab7
Server-side 'onError'
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Tue, 07 Sep 2010 08:28:07 -0400 |
parents | c316ca3c9ec6 |
children | d008c4c43a0a |
comparison
equal
deleted
inserted
replaced
1293:acabf3935060 | 1294:b4480a56cab7 |
---|---|
1 (* Copyright (c) 2008, Adam Chlipala | 1 (* Copyright (c) 2008-2010, Adam Chlipala |
2 * All rights reserved. | 2 * All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are met: | 5 * modification, are permitted provided that the following conditions are met: |
6 * | 6 * |
195 | L.DDatabase s => SOME (L'.DDatabase s, loc) | 195 | L.DDatabase s => SOME (L'.DDatabase s, loc) |
196 | L.DCookie (nt, x, n, c) => SOME (L'.DCookie (nt, x, n, explifyCon c), loc) | 196 | L.DCookie (nt, x, n, c) => SOME (L'.DCookie (nt, x, n, explifyCon c), loc) |
197 | L.DStyle (nt, x, n) => SOME (L'.DStyle (nt, x, n), loc) | 197 | L.DStyle (nt, x, n) => SOME (L'.DStyle (nt, x, n), loc) |
198 | L.DTask (e1, e2) => SOME (L'.DTask (explifyExp e1, explifyExp e2), loc) | 198 | L.DTask (e1, e2) => SOME (L'.DTask (explifyExp e1, explifyExp e2), loc) |
199 | L.DPolicy e1 => SOME (L'.DPolicy (explifyExp e1), loc) | 199 | L.DPolicy e1 => SOME (L'.DPolicy (explifyExp e1), loc) |
200 | L.DOnError v => SOME (L'.DOnError v, loc) | |
200 | 201 |
201 and explifyStr (str, loc) = | 202 and explifyStr (str, loc) = |
202 case str of | 203 case str of |
203 L.StrConst ds => (L'.StrConst (List.mapPartial explifyDecl ds), loc) | 204 L.StrConst ds => (L'.StrConst (List.mapPartial explifyDecl ds), loc) |
204 | L.StrVar n => (L'.StrVar n, loc) | 205 | L.StrVar n => (L'.StrVar n, loc) |