Mercurial > projects > dang
comparison ast/Exp.d @ 111:c658172ca8a0
Parsing basic integers and floats.
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Sun, 25 May 2008 15:42:44 +0200 |
parents | 2deb4c1f0d93 |
children | 3a0cd42de9cc |
comparison
equal
deleted
inserted
replaced
110:2deb4c1f0d93 | 111:c658172ca8a0 |
---|---|
299 { | 299 { |
300 this(SLoc loc, char[] t) | 300 this(SLoc loc, char[] t) |
301 { | 301 { |
302 super(ExpType.IntegerLit, loc); | 302 super(ExpType.IntegerLit, loc); |
303 range = SourceRange(loc, loc + t.length); | 303 range = SourceRange(loc, loc + t.length); |
304 this.name = substitute(t, "_", ""); | 304 this.name = t; |
305 } | 305 } |
306 | 306 |
307 char[] get() | 307 char[] get() |
308 { | 308 { |
309 return name; | 309 return name; |