summaryrefslogtreecommitdiff
path: root/py/parse2.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-09-01 14:55:44 +1000
committerDamien George <damien.p.george@gmail.com>2017-09-01 14:55:44 +1000
commitd64154c730b55606e6212959f976b6fd7f4bd41b (patch)
tree88b1b599925006e53766053a594e47750b49ba95 /py/parse2.h
parent414537711dd05531c63eb830bfc9c3eecf657b1e (diff)
py/emitinlinethumb: Update to work with new small-heap compiler.
Note that the inline assembler only works with the small-heap compiler enabled.
Diffstat (limited to 'py/parse2.h')
-rw-r--r--py/parse2.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/py/parse2.h b/py/parse2.h
index 55b05e062..2e363a779 100644
--- a/py/parse2.h
+++ b/py/parse2.h
@@ -44,6 +44,9 @@ struct _mp_lexer_t;
#define MP_PT_ID_BASE (10) // +16
#define MP_PT_RULE_BASE (26) // +173-ish
+// macro to eliminate differences between original parser and this one
+#define MP_PARSE_NODE_IS_ID(pn) pt_is_any_id(pn)
+
typedef const byte *mp_parse_node_t;
extern const byte pt_const_int0[];
@@ -114,7 +117,7 @@ const byte *pt_rule_extract_top(const byte *p, const byte **ptop);
const byte *pt_rule_extract(const byte *p, mp_uint_t *rule_id, size_t *src_line, const byte **ptop);
bool pt_is_rule_empty(const byte *p);
-bool mp_parse_node_get_int_maybe(const byte *p, mp_obj_t *o);
+bool mp_parse_node_get_int_maybe(const byte *p, mp_obj_t *o, mp_uint_t *co_data);
const byte *mp_parse_node_extract_list(const byte **p, mp_uint_t pn_kind);
typedef enum {