summaryrefslogtreecommitdiff
path: root/py/parse2.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-01-20 23:51:33 +0000
committerDamien George <damien.p.george@gmail.com>2016-04-18 15:09:34 +0100
commitc23a2eabf5e22ca7d3a07dbbe6dae62025558e5b (patch)
tree478de438bd930da790424a5df4cbc7d51f04fbc8 /py/parse2.h
parent6cdf8167f70bf6c782d91a4b1bb5fa90e4bcf944 (diff)
update parser and compiler to align with latest master
Diffstat (limited to 'py/parse2.h')
-rw-r--r--py/parse2.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/py/parse2.h b/py/parse2.h
index 5090cc00c..f50af0df4 100644
--- a/py/parse2.h
+++ b/py/parse2.h
@@ -1,9 +1,9 @@
/*
- * This file is part of the Micro Python project, http://micropython.org/
+ * This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
- * Copyright (c) 2013, 2014 Damien P. George
+ * Copyright (c) 2013-2016 Damien P. George
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -26,11 +26,10 @@
#ifndef __MICROPY_INCLUDED_PY_PARSE_H__
#define __MICROPY_INCLUDED_PY_PARSE_H__
+#include <stddef.h>
#include <stdint.h>
-#include "py/mpconfig.h"
-#include "py/misc.h"
-#include "py/qstr.h"
+#include "py/obj.h"
struct _mp_lexer_t;
@@ -108,9 +107,10 @@ mp_int_t pt_small_int_value(const byte *p);
const byte *pt_get_small_int(const byte *p, mp_int_t *val);
const byte *pt_rule_first(const byte *p);
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, mp_uint_t *src_line, 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);
const byte *mp_parse_node_extract_list(const byte **p, mp_uint_t pn_kind);
typedef enum {