mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
...
This commit is contained in:
parent
6ffcbce647
commit
671cbc3f24
@ -8,7 +8,11 @@
|
||||
int main(int argc, char** argv){
|
||||
pkpy::VM* vm = pkpy_new_vm();
|
||||
vm->bind_builtin_func<0>("input", [](pkpy::VM* vm, pkpy::ArgsView args){
|
||||
return VAR(pkpy::getline());
|
||||
// TODO: we do not use pkpy::getline() here. It doesn't accept unicode characters.
|
||||
// pkpy::getline() has bugs for PIPE input
|
||||
static std::string buffer;
|
||||
std::cin >> buffer;
|
||||
return VAR(buffer);
|
||||
});
|
||||
if(argc == 1){
|
||||
pkpy::REPL* repl = pkpy_new_repl(vm);
|
||||
|
Loading…
x
Reference in New Issue
Block a user