From d02c6d896292d585ba2a46c194cfe00da33a2a72 Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 15 Jan 2014 22:14:03 +0000 Subject: Implement eval. --- py/grammar.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'py/grammar.h') diff --git a/py/grammar.h b/py/grammar.h index 4d53bd3fc..32be6c66c 100644 --- a/py/grammar.h +++ b/py/grammar.h @@ -15,6 +15,8 @@ DEF_RULE(single_input, nc, or(3), tok(NEWLINE), rule(simple_stmt), rule(compound DEF_RULE(file_input, nc, and(1), opt_rule(file_input_2)) DEF_RULE(file_input_2, c(generic_all_nodes), one_or_more, rule(file_input_3)) DEF_RULE(file_input_3, nc, or(2), tok(NEWLINE), rule(stmt)) +DEF_RULE(eval_input, nc, and(2), rule(testlist), opt_rule(eval_input_2)) +DEF_RULE(eval_input_2, nc, and(1), tok(NEWLINE)) // decorator: '@' dotted_name [ '(' [arglist] ')' ] NEWLINE // decorators: decorator+ -- cgit v1.2.3