Started adding support for floating-point type, floating-point literals, and logging of floats. Other operations on float probably don't work yet.
This commit is contained in:
parent
35951c92db
commit
caa22c9341
9 changed files with 87 additions and 18 deletions
|
@ -537,6 +537,10 @@ impure fn parse_lit(parser p) -> ast.lit {
|
|||
p.bump();
|
||||
lit = ast.lit_uint(u);
|
||||
}
|
||||
case (token.LIT_FLOAT(?s)) {
|
||||
p.bump();
|
||||
lit = ast.lit_float(s);
|
||||
}
|
||||
case (token.LIT_MACH_INT(?tm, ?i)) {
|
||||
p.bump();
|
||||
lit = ast.lit_mach_int(tm, i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue