#ifndef COMPILER_TYPES_H #define COMPILER_TYPES_H #include #include #include #include struct Expression { std::string leftVar; std::string op; std::string rightVar; std::string resultVar; }; struct IfBlock { std::string conditionVar; std::vector prints; }; struct CompilerState { std::vector expressions; std::vector ifBlocks; std::map variables; std::vector printCalls; std::vector globalPrints; std::map> functions; bool inFunction = false; std::string currentFunction; std::stack braceStack; }; #endif