From 6292c2f9c54e23b2c45e2da463b3d5affe7bdc27 Mon Sep 17 00:00:00 2001 From: arookas Date: Fri, 29 Jan 2016 21:56:49 -0500 Subject: [PATCH] Added $switch system variable. --- ssc/context.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ssc/context.cs b/ssc/context.cs index 40696b2..8b1f9fa 100644 --- a/ssc/context.cs +++ b/ssc/context.cs @@ -28,6 +28,9 @@ namespace arookas { public sunCallableSymbol Float { get; private set; } public sunCallableSymbol Typeof { get; private set; } + // system variables + public sunStorableSymbol Switch { get; private set; } + public sunContext() { DataTable = new sunDataTable(); SymbolTable = new sunSymbolTable(); @@ -74,6 +77,8 @@ namespace arookas { Float = AddSystemBuiltin("float"); Typeof = AddSystemBuiltin("typeof"); + // add system variables + Switch = AddSystemVariable("$switch"); // storage for switch statements } public void Close() { if (!mOpen) {