diff options
author | Teddy <ted.sybil@gmail.com> | 2013-08-06 12:58:21 +0800 |
---|---|---|
committer | Teddy <ted.sybil@gmail.com> | 2013-08-06 12:58:21 +0800 |
commit | 033b938b22c7947992195e380fb2f7d1ca200f05 (patch) | |
tree | fd6628c9f376ee289d7bd6621fe4b8fc3d717ce4 /parser.cpp | |
parent | 9e76d377dad809f4aa3faa700883dbfc9b2fa769 (diff) |
boolean and char are now supported
Diffstat (limited to 'parser.cpp')
-rw-r--r-- | parser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -117,6 +117,8 @@ ASTGenerator::ASTGenerator() {} EvalObj *ASTGenerator::to_obj(const string &str) { EvalObj *res = NULL; + if ((res = BoolObj::from_string(str))) return res; + if ((res = CharObj::from_string(str))) return res; if ((res = IntNumObj::from_string(str))) return res; if ((res = RatNumObj::from_string(str))) return res; if ((res = RealNumObj::from_string(str))) return res; |