BLUELOVETH 2 ani în urmă
părinte
comite
864345ccc3
4 a modificat fișierele cu 14 adăugiri și 14 ștergeri
  1. 0 14
      include/pocketpy/pocketpy.h
  2. 0 0
      include/pocketpy/str.h
  3. 1 0
      src/lexer.cpp
  4. 13 0
      src/pocketpy.cpp

+ 0 - 14
include/pocketpy/pocketpy.h

@@ -17,20 +17,6 @@
 
 namespace pkpy {
 
-inline CodeObject_ VM::compile(Str source, Str filename, CompileMode mode, bool unknown_global_scope) {
-    Compiler compiler(this, source, filename, mode, unknown_global_scope);
-    try{
-        return compiler.compile();
-    }catch(Exception& e){
-#if PK_DEBUG_FULL_EXCEPTION
-        std::cerr << e.summary() << std::endl;
-#endif
-        _error(e);
-        return nullptr;
-    }
-}
-
-
 void init_builtins(VM* _vm);
 
 struct PyREPL{

Fișier diff suprimat deoarece este prea mare
+ 0 - 0
include/pocketpy/str.h


Fișier diff suprimat deoarece este prea mare
+ 1 - 0
src/lexer.cpp


+ 13 - 0
src/pocketpy.cpp

@@ -1514,4 +1514,17 @@ void VM::post_init(){
 #endif
 }
 
+CodeObject_ VM::compile(Str source, Str filename, CompileMode mode, bool unknown_global_scope) {
+    Compiler compiler(this, source, filename, mode, unknown_global_scope);
+    try{
+        return compiler.compile();
+    }catch(Exception& e){
+#if PK_DEBUG_FULL_EXCEPTION
+        std::cerr << e.summary() << std::endl;
+#endif
+        _error(e);
+        return nullptr;
+    }
+}
+
 }   // namespace pkpy

Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff