Change parsing for floats and disallow x.0

This commit is contained in:
gingerBill
2018-02-25 14:36:41 +00:00
parent 60a7c68aa6
commit 27b7dc336a
2 changed files with 10 additions and 4 deletions

View File

@@ -2106,9 +2106,9 @@ AstNode *parse_atom_expr(AstFile *f, AstNode *operand, bool lhs) {
case Token_Ident:
operand = ast_selector_expr(f, token, operand, parse_ident(f));
break;
case Token_Integer:
operand = ast_selector_expr(f, token, operand, parse_expr(f, lhs));
break;
// case Token_Integer:
// operand = ast_selector_expr(f, token, operand, parse_expr(f, lhs));
// break;
case Token_OpenParen: {
Token open = expect_token(f, Token_OpenParen);
AstNode *type = parse_type(f);