summaryrefslogtreecommitdiffstatshomepage
path: root/py/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/parse.c')
-rw-r--r--py/parse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/parse.c b/py/parse.c
index ae15373227..1741757646 100644
--- a/py/parse.c
+++ b/py/parse.c
@@ -38,6 +38,8 @@
#include "py/runtime.h"
#include "py/builtin.h"
+#if MICROPY_ENABLE_COMPILER
+
#define RULE_ACT_ARG_MASK (0x0f)
#define RULE_ACT_KIND_MASK (0x30)
#define RULE_ACT_ALLOW_IDENT (0x40)
@@ -1079,3 +1081,5 @@ void mp_parse_tree_clear(mp_parse_tree_t *tree) {
chunk = next;
}
}
+
+#endif // MICROPY_ENABLE_COMPILER