60 DEF_RULE(decorated,
c(decorated),
and_ident(2),
rule(decorators),
rule(decorated_body))
61 #if MICROPY_PY_ASYNC_AWAIT 67 DEF_RULE(funcdef,
c(funcdef),
and_blank(8),
tok(KW_DEF),
tok(NAME),
tok(DEL_PAREN_OPEN),
opt_rule(typedargslist),
tok(DEL_PAREN_CLOSE),
opt_rule(funcdefrettype),
tok(DEL_COLON),
rule(suite))
103 DEF_RULE(expr_stmt,
c(expr_stmt),
and(2),
rule(testlist_star_expr),
opt_rule(expr_stmt_2))
109 DEF_RULE(testlist_star_expr,
c(generic_tuple),
list_with_end,
rule(testlist_star_expr_2),
tok(DEL_COMMA))
111 DEF_RULE_NC(augassign,
or(12),
tok(DEL_PLUS_EQUAL),
tok(DEL_MINUS_EQUAL),
tok(DEL_STAR_EQUAL),
tok(DEL_SLASH_EQUAL),
tok(DEL_PERCENT_EQUAL),
tok(DEL_AMPERSAND_EQUAL),
tok(DEL_PIPE_EQUAL),
tok(DEL_CARET_EQUAL),
tok(DEL_DBL_LESS_EQUAL),
tok(DEL_DBL_MORE_EQUAL),
tok(DEL_DBL_STAR_EQUAL),
tok(DEL_DBL_SLASH_EQUAL))
122 DEF_RULE(del_stmt,
c(del_stmt),
and(2),
tok(KW_DEL),
rule(exprlist))
123 DEF_RULE(pass_stmt,
c(generic_all_nodes),
and(1),
tok(KW_PASS))
125 DEF_RULE(break_stmt,
c(break_stmt),
and(1),
tok(KW_BREAK))
126 DEF_RULE(continue_stmt,
c(continue_stmt),
and(1),
tok(KW_CONTINUE))
127 DEF_RULE(return_stmt,
c(return_stmt),
and(2),
tok(KW_RETURN),
opt_rule(testlist))
128 DEF_RULE(yield_stmt,
c(yield_stmt),
and(1),
rule(yield_expr))
129 DEF_RULE(raise_stmt,
c(raise_stmt),
and(2),
tok(KW_RAISE),
opt_rule(raise_stmt_arg))
146 DEF_RULE(import_name,
c(import_name),
and(2),
tok(KW_IMPORT),
rule(dotted_as_names))
147 DEF_RULE(import_from,
c(import_from),
and(4),
tok(KW_FROM),
rule(import_from_2),
tok(KW_IMPORT),
rule(import_from_3))
160 DEF_RULE(global_stmt,
c(global_stmt),
and(2),
tok(KW_GLOBAL),
rule(name_list))
161 DEF_RULE(nonlocal_stmt,
c(nonlocal_stmt),
and(2),
tok(KW_NONLOCAL),
rule(name_list))
163 DEF_RULE(assert_stmt,
c(assert_stmt),
and(3),
tok(KW_ASSERT),
rule(test),
opt_rule(assert_stmt_extra))
178 #if MICROPY_PY_ASYNC_AWAIT 179 DEF_RULE_NC(compound_stmt,
or(9),
rule(if_stmt),
rule(while_stmt),
rule(for_stmt),
rule(try_stmt),
rule(with_stmt),
rule(funcdef),
rule(classdef),
rule(decorated),
rule(async_stmt))
180 DEF_RULE(async_stmt,
c(async_stmt),
and(2),
tok(KW_ASYNC),
rule(async_stmt_2))
190 DEF_RULE(try_stmt,
c(try_stmt),
and(4),
tok(KW_TRY),
tok(DEL_COLON),
rule(suite),
rule(try_stmt_2))
198 DEF_RULE(with_stmt,
c(with_stmt),
and(4),
tok(KW_WITH),
rule(with_stmt_list),
tok(DEL_COLON),
rule(suite))
234 DEF_RULE(or_test,
c(or_test),
list,
rule(and_test),
tok(KW_OR))
235 DEF_RULE(and_test,
c(and_test),
list,
rule(not_test),
tok(KW_AND))
237 DEF_RULE(not_test_2,
c(not_test_2),
and(2),
tok(KW_NOT),
rule(not_test))
238 DEF_RULE(comparison,
c(comparison),
list,
rule(expr),
rule(comp_op))
239 DEF_RULE_NC(comp_op,
or(9),
tok(OP_LESS),
tok(OP_MORE),
tok(OP_DBL_EQUAL),
tok(OP_LESS_EQUAL),
tok(OP_MORE_EQUAL),
tok(OP_NOT_EQUAL),
tok(KW_IN),
rule(comp_op_not_in),
rule(comp_op_is))
243 DEF_RULE(star_expr,
c(star_expr),
and(2),
tok(OP_STAR),
rule(expr))
244 DEF_RULE(expr,
c(expr),
list,
rule(xor_expr),
tok(OP_PIPE))
245 DEF_RULE(xor_expr,
c(xor_expr),
list,
rule(and_expr),
tok(OP_CARET))
246 DEF_RULE(and_expr,
c(and_expr),
list,
rule(shift_expr),
tok(OP_AMPERSAND))
247 DEF_RULE(shift_expr,
c(term),
list,
rule(arith_expr),
rule(shift_op))
249 DEF_RULE(arith_expr,
c(term),
list,
rule(term),
rule(arith_op))
257 #if MICROPY_PY_ASYNC_AWAIT 259 DEF_RULE(atom_expr_await,
c(atom_expr_await),
and(3),
tok(KW_AWAIT),
rule(atom),
opt_rule(atom_expr_trailers))
271 DEF_RULE_NC(atom,
or(12),
tok(NAME),
tok(INTEGER),
tok(FLOAT_OR_IMAG),
tok(STRING),
tok(BYTES),
tok(ELLIPSIS),
tok(KW_NONE),
tok(KW_TRUE),
tok(KW_FALSE),
rule(atom_paren),
rule(atom_bracket),
rule(atom_brace))
272 DEF_RULE(atom_paren,
c(atom_paren),
and(3),
tok(DEL_PAREN_OPEN),
opt_rule(atom_2b),
tok(DEL_PAREN_CLOSE))
274 DEF_RULE(atom_bracket,
c(atom_bracket),
and(3),
tok(DEL_BRACKET_OPEN),
opt_rule(testlist_comp),
tok(DEL_BRACKET_CLOSE))
275 DEF_RULE(atom_brace,
c(atom_brace),
and(3),
tok(DEL_BRACE_OPEN),
opt_rule(dictorsetmaker),
tok(DEL_BRACE_CLOSE))
282 DEF_RULE(trailer_paren,
c(trailer_paren),
and(3),
tok(DEL_PAREN_OPEN),
opt_rule(arglist),
tok(DEL_PAREN_CLOSE))
283 DEF_RULE(trailer_bracket,
c(trailer_bracket),
and(3),
tok(DEL_BRACKET_OPEN),
rule(subscriptlist),
tok(DEL_BRACKET_CLOSE))
284 DEF_RULE(trailer_period,
c(trailer_period),
and(2),
tok(DEL_PERIOD),
tok(NAME))
290 #if MICROPY_PY_BUILTINS_SLICE 294 DEF_RULE(subscript_3,
c(subscript_3),
and(2),
tok(DEL_COLON),
opt_rule(subscript_3b))
312 #if MICROPY_PY_BUILTINS_SET 313 DEF_RULE(dictorsetmaker_item,
c(dictorsetmaker_item),
and_ident(2),
rule(test),
opt_rule(dictorsetmaker_colon))
316 DEF_RULE(dictorsetmaker_item,
c(dictorsetmaker_item),
and(3),
rule(test),
tok(DEL_COLON),
rule(test))
355 DEF_RULE(yield_expr,
c(yield_expr),
and(2),
tok(KW_YIELD),
opt_rule(yield_arg))
DEF_RULE_NC(single_input, or(3), tok(NEWLINE), rule(simple_stmt), rule(compound_stmt)) DEF_RULE(file_input
rule(file_input_3)) DEF_RULE_NC(file_input_3
opt_rule(file_input_2)) DEF_RULE(file_input_2