about summary refs log tree commit diff
path: root/src/fix-ng/parser.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-11-02T17·36+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-11-02T17·36+0000
commit40986312bb00f0101a6634db42080daee03f887b (patch)
treefab15bbbd1debf7ab48c88b73e45943594718903 /src/fix-ng/parser.cc
parentadf9a45469f55258446d383333aa2ca79cfb0536 (diff)
* Boolean constants.
Diffstat (limited to 'src/fix-ng/parser.cc')
-rw-r--r--src/fix-ng/parser.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fix-ng/parser.cc b/src/fix-ng/parser.cc
index d310397c2d63..7dff0363dbc5 100644
--- a/src/fix-ng/parser.cc
+++ b/src/fix-ng/parser.cc
@@ -50,6 +50,12 @@ struct Cleanup : TermFun
             return ATmake("Int(<int>)", n);
         }
 
+        if (ATmatch(e, "Bool(\"true\")", &s))
+            return ATmake("Bool(True)");
+        
+        if (ATmatch(e, "Bool(\"false\")", &s))
+            return ATmake("Bool(False)");
+
         return e;
     }
 };