mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 19:40:18 +00:00
up
This commit is contained in:
parent
8764a23302
commit
86a290e6c4
@ -8,7 +8,7 @@ with open("src/opcodes.h", "rt", encoding='utf-8') as f:
|
||||
pipeline = [
|
||||
["common.h", "memory.h", "str.h", "tuplelist.h", "namedict.h", "error.h"],
|
||||
["obj.h", "parser.h", "codeobject.h", "frame.h"],
|
||||
["vm.h", "ref.h", "ceval.h", "compiler.h", "repl.h"],
|
||||
["gc.h", "vm.h", "ref.h", "ceval.h", "compiler.h", "repl.h"],
|
||||
["iter.h", "cffi.h", "io.h", "_generated.h", "pocketpy.h"]
|
||||
]
|
||||
|
||||
|
@ -69,7 +69,10 @@ int main(int argc, char** argv){
|
||||
return 1;
|
||||
}
|
||||
std::ifstream file(filepath);
|
||||
if(!file.is_open()) return 1;
|
||||
if(!file.is_open()){
|
||||
std::cerr << "Failed to open file: " << argv_1 << std::endl;
|
||||
return 1;
|
||||
}
|
||||
std::string src((std::istreambuf_iterator<char>(file)), std::istreambuf_iterator<char>());
|
||||
|
||||
// set parent path as cwd
|
||||
|
Loading…
x
Reference in New Issue
Block a user