Mercurial > projects > dang
diff ast/Exp.d @ 67:3fdf20b08a81 new_gen
Been working on the floating point parsing. Still a bit of work to do here.
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Tue, 29 Apr 2008 20:15:22 +0200 |
parents | 932bb3c6b80b |
children | 381975d76baf |
line wrap: on
line diff
--- a/ast/Exp.d Tue Apr 29 18:30:14 2008 +0200 +++ b/ast/Exp.d Tue Apr 29 20:15:22 2008 +0200 @@ -1,6 +1,6 @@ module ast.Exp; -import tango.text.Util : jhash; +import tango.text.Util; import tango.io.Stdout; import ast.Decl, @@ -211,6 +211,12 @@ { super(ExpType.IntegerLit); this.token = t; + this.name = substitute(t.get,"_",""); + } + + char[] get() + { + return name; } Exp simplify() { @@ -220,6 +226,7 @@ override DType type() { return DType.Int; } Token token; + char[] name; } class MemberReference : Exp