Reworked bound variables into specific LuaType class instead of anonymous objects

This commit is contained in:
2018-11-14 13:09:01 +01:00
parent dff1ddc0ba
commit deefe43d9f
17 changed files with 125 additions and 56 deletions

View File

@@ -2,6 +2,7 @@ using System;
using System.Text;
using Upsilon.BaseTypes.Number;
using Upsilon.Binder;
using Boolean = Upsilon.BaseTypes.Boolean;
using Type = Upsilon.BaseTypes.Type;
namespace UpsilonCompiler
@@ -59,7 +60,7 @@ namespace UpsilonCompiler
case Type.Nil:
return "null";
case Type.Boolean:
return ((bool)e.Value) ? "true" : "false";
return ((Boolean)e.Value) ? "true" : "false";
case Type.Number:
return ((Number) e.Value).ToString();
case Type.String: