From 372c622b847013e9064fe30277479aabb7b89243 Mon Sep 17 00:00:00 2001 From: arookas Date: Mon, 28 Dec 2015 00:59:26 -0500 Subject: [PATCH] Added storable and constant counts. --- ssc/symbol table.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ssc/symbol table.cs b/ssc/symbol table.cs index b1e0e85..c6f9568 100644 --- a/ssc/symbol table.cs +++ b/ssc/symbol table.cs @@ -9,18 +9,22 @@ namespace arookas { class sunSymbolTable : IEnumerable { - - List Symbols { get; set; } + public int Count { get { return Symbols.Count; } } public int CallableCount { get { return Callables.Count(); } } public int BuiltinCount { get { return Builtins.Count(); } } public int FunctionCount { get { return Functions.Count(); } } + public int StorableCount { get { return Storables.Count(); } } public int VariableCount { get { return Variables.Count(); } } + public int ConstantCount { get { return Constants.Count(); } } + public IEnumerable Callables { get { return Symbols.OfType(); } } public IEnumerable Builtins { get { return Symbols.OfType(); } } public IEnumerable Functions { get { return Symbols.OfType(); } } + public IEnumerable Storables { get { return Symbols.OfType(); } } public IEnumerable Variables { get { return Symbols.OfType(); } } + public IEnumerable Constants { get { return Symbols.OfType(); } } public sunSymbolTable() {