Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit c00a13d5662dd512e9505d18a37bb331332f7575
parent a02d0da4f9ed04682a9b6792c2830d30a6e086ac
Author: Drew DeVault <sir@cmpwn.com>
Date:   Tue, 22 Dec 2020 09:02:02 -0500

parse: fix simple binding initializers

Msrc/parse.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/parse.c b/src/parse.c @@ -336,6 +336,8 @@ parse_type(struct parser *par, struct ast_type *type) static void parse_complex_expression(struct parser *par, struct ast_expression *exp); +static void parse_simple_expression(struct parser *par, + struct ast_expression *exp); static void parse_access(struct parser *par, struct ast_expression *exp) @@ -383,6 +385,7 @@ parse_binding_list(struct parser *par, struct ast_expression *exp) parse_complex_expression(par, binding->initializer); break; case T_EQUAL: + parse_simple_expression(par, binding->initializer); break; default: synassert(false, &tok, T_COLON, T_COMMA, T_EOF);