move headers

This commit is contained in:
blueloveTH 2022-11-10 19:31:02 +08:00
parent 5f561d4d97
commit 967c48d91f
9 changed files with 22 additions and 30 deletions

View File

@ -2,7 +2,7 @@ with open("src/opcodes.h", "rt", encoding='utf-8') as f:
OPCODES_TEXT = f.read() OPCODES_TEXT = f.read()
pipeline = [ pipeline = [
["str.h", "builtins.h", "error.h"], ["__stl__.h", "str.h", "builtins.h", "error.h"],
["obj.h", "iter.h", "parser.h", "pointer.h", "codeobject.h"], ["obj.h", "iter.h", "parser.h", "pointer.h", "codeobject.h"],
["vm.h", "compiler.h"], ["vm.h", "compiler.h"],
["pocketpy.h"] ["pocketpy.h"]

18
src/__stl__.h Normal file
View File

@ -0,0 +1,18 @@
#pragma once
#include <sstream>
#include <regex>
#include <unordered_map>
#include <memory>
#include <variant>
#include <functional>
#include <stack>
#include <cmath>
#include <stdexcept>
#include <vector>
#include <string>
#include <cstring>
#include <chrono>
#include <string_view>
#include <queue>
#include <iomanip>

View File

@ -1,9 +1,5 @@
#pragma once #pragma once
#include <vector>
#include <string>
#include <cstring>
#include "parser.h" #include "parser.h"
#include "error.h" #include "error.h"
#include "vm.h" #include "vm.h"

View File

@ -1,9 +1,6 @@
#pragma once #pragma once
#include <string> #include "__stl__.h"
#include <vector>
#include <stdexcept>
#include "str.h" #include "str.h"
class NeedMoreLines { class NeedMoreLines {

View File

@ -1,7 +1,6 @@
#include <iostream> #include <iostream>
#include <fstream> #include <fstream>
#include <chrono>
#include "pocketpy.h" #include "pocketpy.h"
//#define PK_DEBUG_TIME //#define PK_DEBUG_TIME

View File

@ -1,13 +1,6 @@
#pragma once #pragma once
#include <unordered_map> #include "__stl__.h"
#include <memory>
#include <variant>
#include <functional>
#include <stack>
#include <cmath>
#include <stdexcept>
#include "str.h" #include "str.h"
typedef int64_t _Int; typedef int64_t _Int;

View File

@ -1,9 +1,5 @@
#pragma once #pragma once
#include <string_view>
#include <cstring>
#include <queue>
#include "obj.h" #include "obj.h"
typedef uint8_t _TokenType; typedef uint8_t _TokenType;

View File

@ -3,10 +3,6 @@
#include "vm.h" #include "vm.h"
#include "compiler.h" #include "compiler.h"
#include <iomanip>
#include <cmath>
#include <chrono>
#define PK_VERSION "0.2.0" #define PK_VERSION "0.2.0"
#define BIND_NUM_ARITH_OPT(name, op) \ #define BIND_NUM_ARITH_OPT(name, op) \

View File

@ -1,9 +1,6 @@
#pragma once #pragma once
#include <vector> #include "__stl__.h"
#include <string>
#include <sstream>
#include <regex>
typedef std::stringstream _StrStream; typedef std::stringstream _StrStream;