mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-11-13 22:55:29 +00:00
Changed 'print' to 'pp'.
This commit is contained in:
parent
f3f73e5c35
commit
8d2aeabb32
@ -178,14 +178,14 @@ struct Env
|
||||
}
|
||||
|
||||
void setup_built_in_functions() {
|
||||
auto func_print = Value::FunctionValue {
|
||||
auto func_pretty_print = Value::FunctionValue {
|
||||
{ "arg" },
|
||||
[](Env& env) {
|
||||
std::cout << env.get("arg") << std::endl;
|
||||
return Value();
|
||||
}
|
||||
};
|
||||
set("print", Value(func_print));
|
||||
set("pp", Value(func_pretty_print));
|
||||
}
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user