diff options
| author | Li Jin <dragon-fly@qq.com> | 2020-02-18 00:43:07 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2020-02-18 00:43:07 +0800 |
| commit | adfea5f0eee289fe729c2bcc68105417d77a8407 (patch) | |
| tree | 9ec34e380c7157f0ed14a80ef4e2ab30876942fd /src/MoonP/moon_parser.h | |
| parent | 27e0f69843f412f25703c2c9165dbc1a0c6d6218 (diff) | |
| download | yuescript-adfea5f0eee289fe729c2bcc68105417d77a8407.tar.gz yuescript-adfea5f0eee289fe729c2bcc68105417d77a8407.tar.bz2 yuescript-adfea5f0eee289fe729c2bcc68105417d77a8407.zip | |
remove the extra type id system.
Diffstat (limited to 'src/MoonP/moon_parser.h')
| -rw-r--r-- | src/MoonP/moon_parser.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/MoonP/moon_parser.h b/src/MoonP/moon_parser.h index 2b6e2ae..7a1a8a9 100644 --- a/src/MoonP/moon_parser.h +++ b/src/MoonP/moon_parser.h | |||
| @@ -15,14 +15,15 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI | |||
| 15 | #include <vector> | 15 | #include <vector> |
| 16 | #include <sstream> | 16 | #include <sstream> |
| 17 | #include <string_view> | 17 | #include <string_view> |
| 18 | using namespace std::string_view_literals; | 18 | |
| 19 | #include "MoonP/ast.hpp" | 19 | #include "MoonP/ast.hpp" |
| 20 | #include "MoonP/moon_ast.h" | 20 | #include "MoonP/moon_ast.h" |
| 21 | 21 | ||
| 22 | namespace MoonP { | 22 | namespace MoonP { |
| 23 | using namespace parserlib; | ||
| 23 | 24 | ||
| 24 | struct ParseInfo { | 25 | struct ParseInfo { |
| 25 | ast_ptr<false,ast_node> node; | 26 | ast_ptr<false, ast_node> node; |
| 26 | std::string error; | 27 | std::string error; |
| 27 | std::unique_ptr<input> codes; | 28 | std::unique_ptr<input> codes; |
| 28 | std::string errorMessage(std::string_view msg, const input_range* loc) const; | 29 | std::string errorMessage(std::string_view msg, const input_range* loc) const; |
