diff options
author | Li Jin <dragon-fly@qq.com> | 2020-01-10 16:30:34 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2020-01-10 16:30:34 +0800 |
commit | 52a6536103f46c26a3ba9b149b0fe7b40d524d8c (patch) | |
tree | 67e4759f8e1ea922079d0e162d84ecba5e558261 /MoonParser/moon_parser.h | |
parent | 975167856ed0b11c2ede03c6eb750ca4e4a6a7fc (diff) | |
download | yuescript-52a6536103f46c26a3ba9b149b0fe7b40d524d8c.tar.gz yuescript-52a6536103f46c26a3ba9b149b0fe7b40d524d8c.tar.bz2 yuescript-52a6536103f46c26a3ba9b149b0fe7b40d524d8c.zip |
update.
Diffstat (limited to 'MoonParser/moon_parser.h')
-rw-r--r-- | MoonParser/moon_parser.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/MoonParser/moon_parser.h b/MoonParser/moon_parser.h deleted file mode 100644 index 07380cc..0000000 --- a/MoonParser/moon_parser.h +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include <string> | ||
4 | #include <codecvt> | ||
5 | #include <unordered_set> | ||
6 | #include <stack> | ||
7 | #include <algorithm> | ||
8 | #include <vector> | ||
9 | #include "ast.hpp" | ||
10 | using namespace parserlib; | ||
11 | |||
12 | namespace MoonP { | ||
13 | |||
14 | struct State { | ||
15 | State() { | ||
16 | indents.push(0); | ||
17 | stringOpen = -1; | ||
18 | } | ||
19 | std::string buffer; | ||
20 | size_t stringOpen; | ||
21 | std::stack<int> indents; | ||
22 | std::stack<bool> doStack; | ||
23 | static std::unordered_set<std::string> luaKeywords; | ||
24 | static std::unordered_set<std::string> keywords; | ||
25 | }; | ||
26 | |||
27 | } // namespace MoonP | ||