diff options
Diffstat (limited to 'src/MoonP/moon_ast.h')
-rw-r--r-- | src/MoonP/moon_ast.h | 5 |
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" |
12 | using namespace parserlib; | ||
12 | 13 | ||
13 | namespace MoonP { | 14 | namespace MoonP { |
14 | 15 | ||
15 | #define AST_LEAF(type, id) \ | 16 | #define AST_LEAF(type, id) \ |
16 | extern rule type; \ | ||
17 | class type##_t : public ast_node \ | 17 | class type##_t : public ast_node \ |
18 | { \ | 18 | { \ |
19 | public: \ | 19 | public: \ |
@@ -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) \ |
24 | extern rule type; \ | ||
25 | class type##_t : public ast_container \ | 24 | class type##_t : public ast_container \ |
26 | { \ | 25 | { \ |
27 | public: \ | 26 | public: \ |