aboutsummaryrefslogtreecommitdiff
path: root/src/MoonP/moon_ast.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/MoonP/moon_ast.h')
-rw-r--r--src/MoonP/moon_ast.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/MoonP/moon_ast.h b/src/MoonP/moon_ast.h
index 6969688..86f5ef3 100644
--- a/src/MoonP/moon_ast.h
+++ b/src/MoonP/moon_ast.h
@@ -8,12 +8,12 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
8 8
9#pragma once 9#pragma once
10 10
11#include "MoonP/moon_parser.h" 11#include "MoonP/ast.hpp"
12using namespace parserlib;
12 13
13namespace MoonP { 14namespace MoonP {
14 15
15#define AST_LEAF(type, id) \ 16#define AST_LEAF(type, id) \
16extern rule type; \
17class type##_t : public ast_node \ 17class type##_t : public ast_node \
18{ \ 18{ \
19public: \ 19public: \
@@ -21,7 +21,6 @@ public: \
21 virtual size_t getId() const override { return id; } \ 21 virtual size_t getId() const override { return id; } \
22 22
23#define AST_NODE(type, id) \ 23#define AST_NODE(type, id) \
24extern rule type; \
25class type##_t : public ast_container \ 24class type##_t : public ast_container \
26{ \ 25{ \
27public: \ 26public: \