diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-11-02T17·36+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-11-02T17·36+0000 |
commit | 40986312bb00f0101a6634db42080daee03f887b (patch) | |
tree | fab15bbbd1debf7ab48c88b73e45943594718903 /src/fix-ng/parser.cc | |
parent | adf9a45469f55258446d383333aa2ca79cfb0536 (diff) |
* Boolean constants.
Diffstat (limited to 'src/fix-ng/parser.cc')
-rw-r--r-- | src/fix-ng/parser.cc | 6 |
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; } }; |