summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2010-07-13 11:43:24 +0000
committerkrasimir <krasimir@chalmers.se>2010-07-13 11:43:24 +0000
commit8cdb33031dce8d12d2078e23081fc78b24822c88 (patch)
tree82f932a684fa6c7ea7a112e06912036fdad0fe76 /examples
parent2e2d190fd4844040af39f8437ea6e4c6c67269ca (diff)
solve the ambiguity for double negation in SUMO
Diffstat (limited to 'examples')
-rw-r--r--examples/SUMO/BasicEng.gf8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/SUMO/BasicEng.gf b/examples/SUMO/BasicEng.gf
index e5ad133ee..f1652344b 100644
--- a/examples/SUMO/BasicEng.gf
+++ b/examples/SUMO/BasicEng.gf
@@ -29,10 +29,10 @@ lin
and f1 f2 = {s = \\f,c => f1.s ! Indep ! c ++ "and" ++ f2.s ! Indep ! c; flag = NothingS; lock_PolSentence = <>};
or f1 f2 = {s = \\f,c => f1.s ! Indep ! c ++ "or" ++ f2.s ! Indep ! c; flag = NothingS; lock_PolSentence = <>};
- not f1 = {s = \\f,c => case c of {
- Neg => f1.s ! f ! Pos ;
- Pos => f1.s ! Indep ! Neg
- };
+ not f1 = {s = \\f => table {
+ Neg => "it is not true that" ++ f1.s ! f ! Neg ;
+ Pos => f1.s ! Indep ! Neg
+ };
flag = f1.flag;
lock_PolSentence = <>
};