summaryrefslogtreecommitdiff
path: root/py/parse.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-08-30 11:51:25 +1000
committerDamien George <damien.p.george@gmail.com>2017-08-30 11:51:25 +1000
commit414537711dd05531c63eb830bfc9c3eecf657b1e (patch)
treee885b26c0e1ef94b189955546015893d704aaa1e /py/parse.h
parent39b465ca831d0ec866c2a137dccbfec7f7badfba (diff)
py: Add MICROPY_USE_SMALL_HEAP_COMPILER option, disabled by default.
This new option allows the original and new parser/compiler to coexist.
Diffstat (limited to 'py/parse.h')
-rw-r--r--py/parse.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/py/parse.h b/py/parse.h
index 2087a2d1a..4916d463b 100644
--- a/py/parse.h
+++ b/py/parse.h
@@ -23,15 +23,17 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
-#include "py/parse2.h"
#ifndef MICROPY_INCLUDED_PY_PARSE_H
#define MICROPY_INCLUDED_PY_PARSE_H
#include <stddef.h>
#include <stdint.h>
+#include "py/parse2.h"
#include "py/obj.h"
+#if !MICROPY_USE_SMALL_HEAP_COMPILER
+
struct _mp_lexer_t;
// a mp_parse_node_t is:
@@ -105,4 +107,6 @@ typedef struct _mp_parse_t {
mp_parse_tree_t mp_parse(struct _mp_lexer_t *lex, mp_parse_input_kind_t input_kind);
void mp_parse_tree_clear(mp_parse_tree_t *tree);
+#endif // !MICROPY_USE_SMALL_HEAP_COMPILER
+
#endif // MICROPY_INCLUDED_PY_PARSE_H