mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 20:05:31 +00:00
Fixed build errors.
This commit is contained in:
parent
2510a22bc5
commit
86ef99d48a
@ -213,7 +213,7 @@ int repl(shared_ptr<Environment> env, bool print_ast)
|
||||
auto ret = run("(repl)", env, line.c_str(), line.size(), val, msgs, ast);
|
||||
if (ret) {
|
||||
if (print_ast) {
|
||||
ast->print();
|
||||
AstPrint::print(ast);
|
||||
}
|
||||
cout << val << endl;
|
||||
linenoise::AddHistory(line.c_str());
|
||||
@ -282,7 +282,7 @@ int main(int argc, const char** argv)
|
||||
}
|
||||
return -1;
|
||||
} else if (print_ast) {
|
||||
ast->print();
|
||||
AstPrint::print(ast);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user