Mercurial > projects > dang
comparison sema/LiteralInterpreter.d @ 192:fda35d57847e
Fixed String parsing, so that they get created with the right type in AST.
Also added so that you can parse options to the test program, that will mirror them to Dang.
Eg.
./tests/run --semantic-only
will pass --semantic-only to Dang on each run.
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Fri, 25 Jul 2008 15:00:54 +0200 |
parents | 6cb2f4201e2a |
children |
comparison
equal
deleted
inserted
replaced
191:e799db8d9cb0 | 192:fda35d57847e |
---|---|
19 } | 19 } |
20 | 20 |
21 void visitStringExp(StringExp exp) | 21 void visitStringExp(StringExp exp) |
22 { | 22 { |
23 auto str = parseString(exp.str, exp.loc, messages); | 23 auto str = parseString(exp.str, exp.loc, messages); |
24 exp.data = str.data; | 24 exp.data = str; |
25 } | 25 } |
26 | 26 |
27 void visitIntegerLit(IntegerLit exp) | 27 void visitIntegerLit(IntegerLit exp) |
28 { | 28 { |
29 exp.number = parseNumber(exp.name, exp.loc, messages); | 29 exp.number = parseNumber(exp.name, exp.loc, messages); |