diff options
| author | Li Jin <dragon-fly@qq.com> | 2019-10-06 17:30:11 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2019-10-06 17:30:11 +0800 |
| commit | 055fcb596781a8488afeb0030e9ef4295e3d7017 (patch) | |
| tree | 0512d6d9660e563be37af5b6ac1bb888a9023e6a /MoonParser/moon_parser.h | |
| parent | 2de63a85a87c9a64032602fdd3736f69e73efbc5 (diff) | |
| download | yuescript-055fcb596781a8488afeb0030e9ef4295e3d7017.tar.gz yuescript-055fcb596781a8488afeb0030e9ef4295e3d7017.tar.bz2 yuescript-055fcb596781a8488afeb0030e9ef4295e3d7017.zip | |
updating
Diffstat (limited to 'MoonParser/moon_parser.h')
| -rw-r--r-- | MoonParser/moon_parser.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MoonParser/moon_parser.h b/MoonParser/moon_parser.h index 5327b05..0c45538 100644 --- a/MoonParser/moon_parser.h +++ b/MoonParser/moon_parser.h | |||
| @@ -5,7 +5,6 @@ | |||
| 5 | #include <unordered_set> | 5 | #include <unordered_set> |
| 6 | #include <stack> | 6 | #include <stack> |
| 7 | #include <algorithm> | 7 | #include <algorithm> |
| 8 | #include <sstream> | ||
| 9 | #include <vector> | 8 | #include <vector> |
| 10 | #include "parserlib.hpp" | 9 | #include "parserlib.hpp" |
| 11 | using namespace parserlib; | 10 | using namespace parserlib; |
| @@ -15,9 +14,10 @@ struct State { | |||
| 15 | indents.push(0); | 14 | indents.push(0); |
| 16 | stringOpen = -1; | 15 | stringOpen = -1; |
| 17 | } | 16 | } |
| 18 | std::stringstream buffer; | 17 | std::string buffer; |
| 19 | size_t stringOpen; | 18 | size_t stringOpen; |
| 20 | std::stack<int> indents; | 19 | std::stack<int> indents; |
| 21 | std::stack<bool> doStack; | 20 | std::stack<bool> doStack; |
| 21 | static std::unordered_set<std::string> luaKeywords; | ||
| 22 | static std::unordered_set<std::string> keywords; | 22 | static std::unordered_set<std::string> keywords; |
| 23 | }; | 23 | }; |
