Naturally I encountered numerous errors, though I can't resolve all of them without help. For now I have a trouble understanding how parse.c and grammar.h works - DEF_RULE macro just blows my newbie mind.
The error is "too many initializer values" in https://github.com/micropython/micropyt ... mmar.h#L40 and so on.
CC's preprocessor gives me this:
Code: Select all
static const rule_t rule_single_input = { RULE_single_input, or(3), { tok(NEWLINE), rule(simple_stmt), rule(compound_stmt) } };