From 1842a9995409e0602298358cd9e74c8d260cdb71 Mon Sep 17 00:00:00 2001 From: arookas Date: Mon, 1 Feb 2016 03:08:35 -0500 Subject: [PATCH] Added modifiers property --- ssc/symbol table.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ssc/symbol table.cs b/ssc/symbol table.cs index 8c32635..7049282 100644 --- a/ssc/symbol table.cs +++ b/ssc/symbol table.cs @@ -37,10 +37,15 @@ namespace arookas { abstract class sunSymbol { string mName; + sunSymbolModifiers mModifiers; public string Name { get { return mName; } } + public sunSymbolModifiers Modifiers { + get { return mModifiers; } + set { mModifiers = value; } + } // symbol table public abstract sunSymbolType Type { get; } @@ -312,4 +317,11 @@ namespace arookas { Variable, Constant, } + + [Flags] + enum sunSymbolModifiers { + None = 0, + Constant = 1 << 0, + Local = 1 << 1, + } }