aboutsummaryrefslogtreecommitdiff
path: root/src/MoonP/ast.cpp
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-01-30 16:06:32 +0800
committerLi Jin <dragon-fly@qq.com>2020-01-30 16:06:32 +0800
commitc62d9eb35a310e7663234526ce4b9fe3519ca7cf (patch)
tree56b4b418aadab90989e3e29e29e8ab7e04806e8d /src/MoonP/ast.cpp
parent240b1ec4a49128c00a787e6d0928865995b1d02e (diff)
downloadyuescript-c62d9eb35a310e7663234526ce4b9fe3519ca7cf.tar.gz
yuescript-c62d9eb35a310e7663234526ce4b9fe3519ca7cf.tar.bz2
yuescript-c62d9eb35a310e7663234526ce4b9fe3519ca7cf.zip
Separate MoonParser from MoonCompiler, make moonc compile multiple file in threads.
Diffstat (limited to 'src/MoonP/ast.cpp')
-rw-r--r--src/MoonP/ast.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MoonP/ast.cpp b/src/MoonP/ast.cpp
index cda2339..7cdefba 100644
--- a/src/MoonP/ast.cpp
+++ b/src/MoonP/ast.cpp
@@ -115,7 +115,7 @@ bool ast_container::visitChild(const std::function<bool (ast_node*)>& func) {
115 @return pointer to ast node created, or null if there was an error. 115 @return pointer to ast node created, or null if there was an error.
116 The return object must be deleted by the caller. 116 The return object must be deleted by the caller.
117 */ 117 */
118ast_node* _parse(input &i, rule &g, error_list &el, void* ud) { 118ast_node* parse(input &i, rule &g, error_list &el, void* ud) {
119 ast_stack st; 119 ast_stack st;
120 if (!parse(i, g, el, &st, ud)) { 120 if (!parse(i, g, el, &st, ud)) {
121 for (auto node : st) { 121 for (auto node : st) {