aboutsummaryrefslogtreecommitdiff
path: root/src/parser.c
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-04-13 19:29:17 +0100
committerGinger Bill <bill@gingerbill.org>2017-04-13 19:29:17 +0100
commitd8d22e34dd63547cb6492e8e15b55fcaec4cb3e5 (patch)
tree2356e8733f06e73af03391f0511f965661bd4d3e /src/parser.c
parent627ee002e8d09a00b29c7e5a9f1cf6d96a48b57f (diff)
Fix fmt for type; remove dead stuff
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/parser.c b/src/parser.c
index 8e56279ab..e9c1a9a44 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -1724,11 +1724,7 @@ AstNode *parse_operand(AstFile *f, bool lhs) {
AstNode *operand = NULL; // Operand
switch (f->curr_token.kind) {
case Token_Ident:
- operand = parse_ident(f);
- if (!lhs) {
- // TODO(bill): Handle?
- }
- return operand;
+ return parse_ident(f);
case Token_context:
return ast_implicit(f, expect_token(f, Token_context));
@@ -1834,17 +1830,6 @@ AstNode *parse_operand(AstFile *f, bool lhs) {
return type;
}
- // case Token_if:
- // if (!lhs && f->expr_level >= 0) {
- // return parse_if_expr(f);
- // }
- // break;
- // case Token_OpenBrace:
- // if (!lhs && f->expr_level >= 0) {
- // return parse_block_expr(f);
- // }
- // break;
-
default: {
AstNode *type = parse_type_or_ident(f);
if (type != NULL) {