From 2cb15e8c2d7513350adaed7961c88b44365858f8 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Sat, 10 Nov 2012 21:55:56 +0100 Subject: [PATCH] first parsing of [ - pushing temp changes --- parser.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/parser.c b/parser.c index 0616b71..3ec8804 100644 --- a/parser.c +++ b/parser.c @@ -1148,6 +1148,10 @@ static ast_expression* parse_expression_leave(parser_t *parser, bool stopatcomma parseerror(parser, "internal error: '(' should be classified as operator"); goto onerr; } + else if (parser->tok == '[') { + parseerror(parser, "internal error: '[' should be classified as operator"); + goto onerr; + } else if (parser->tok == ')') { if (wantop) { DEBUGSHUNTDO(printf("do[op] )\n")); -- 2.39.2