diff options
Diffstat (limited to 'source/primitives/core.d')
-rw-r--r-- | source/primitives/core.d | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/primitives/core.d b/source/primitives/core.d index f2766d2..cae577b 100644 --- a/source/primitives/core.d +++ b/source/primitives/core.d @@ -4,8 +4,6 @@ import std.stdio; import base.stack; -Token[string] variables; - bool handle(string word) { switch ( word ) { case "$" : binary_op_variable_bind; break; @@ -28,6 +26,10 @@ bool handle(string word) { return true; } +private { + +Token[string] variables; + void binary_op_variable_bind() { string name = stack.pop.get!string; Token value = stack.pop; @@ -116,3 +118,5 @@ void binary_cond_eq() { void nullary_op_value_bool(bool value) { stack.push(Token(value)); } + +} |