summaryrefslogtreecommitdiffstatshomepage
path: root/py/grammar.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-02-05 00:51:47 +0000
committerDamien George <damien.p.george@gmail.com>2014-02-05 00:51:47 +0000
commit35e2a4e6bb319a208af8d3e5c3e59cee7873400a (patch)
treeabe2bb266bbb011c807a335b839226a6a66f8341 /py/grammar.h
parente0723497b3dbce94e6ce2a2dcd59af510f094fa4 (diff)
downloadmicropython-35e2a4e6bb319a208af8d3e5c3e59cee7873400a.tar.gz
micropython-35e2a4e6bb319a208af8d3e5c3e59cee7873400a.zip
py: Add built-in super.
Diffstat (limited to 'py/grammar.h')
-rw-r--r--py/grammar.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/grammar.h b/py/grammar.h
index 32be6c66ca..c58ad9e069 100644
--- a/py/grammar.h
+++ b/py/grammar.h
@@ -214,7 +214,7 @@ DEF_RULE(term_op, nc, or(4), tok(OP_STAR), tok(OP_SLASH), tok(OP_PERCENT), tok(O
DEF_RULE(factor, nc, or(2), rule(factor_2), rule(power))
DEF_RULE(factor_2, c(factor_2), and(2), rule(factor_op), rule(factor))
DEF_RULE(factor_op, nc, or(3), tok(OP_PLUS), tok(OP_MINUS), tok(OP_TILDE))
-DEF_RULE(power, c(generic_all_nodes), and(3), rule(atom), opt_rule(power_trailers), opt_rule(power_dbl_star))
+DEF_RULE(power, c(power), and(3), rule(atom), opt_rule(power_trailers), opt_rule(power_dbl_star))
DEF_RULE(power_trailers, c(power_trailers), one_or_more, rule(trailer))
DEF_RULE(power_dbl_star, c(power_dbl_star), and(2), tok(OP_DBL_STAR), rule(factor))