From 307995f7acfc57f05ea279156704c94f864bb9ba Mon Sep 17 00:00:00 2001 From: redbrain Date: Wed, 5 Jan 2011 01:57:29 +0000 Subject: [PATCH] fixed bug in suite grammar --- gcc/python/py-parser.y | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gcc/python/py-parser.y b/gcc/python/py-parser.y index 2b2043ff833..0133f2e717f 100644 --- a/gcc/python/py-parser.y +++ b/gcc/python/py-parser.y @@ -246,7 +246,7 @@ funcdef: DEF funcname '(' parameter_list_stmt ')' ':' suite ; suite: stmt_list NEWLINE - | NEWLINE suite_statement_list DEDENT + | NEWLINE INDENT suite_statement_list DEDENT { $$ = VEC_pop( gpy_sym, gpy_symbol_stack ); printf("poping suite!\n"); @@ -266,8 +266,7 @@ suite_statement_list: suite_statement_list indent_stmt } ; -indent_stmt: INDENT statement - { $$=$2; } +indent_stmt: statement ; statement: stmt_list NEWLINE -- 2.11.4.GIT