diff options
Diffstat (limited to 'CompilerState.h')
-rw-r--r-- | CompilerState.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CompilerState.h b/CompilerState.h index b7581e0b..f8f7ce81 100644 --- a/CompilerState.h +++ b/CompilerState.h @@ -36,10 +36,13 @@ struct Macro struct CompilerState { + CompilerState(); + CodeFragment const& getDef(std::string const& _s); void populateStandard(); - std::map<std::string, unsigned> vars; + unsigned stackSize = 64; + std::map<std::string, std::pair<unsigned, unsigned>> vars; ///< maps name to stack offset & size. std::map<std::string, CodeFragment> defs; std::map<std::string, CodeFragment> args; std::map<std::string, CodeFragment> outers; |