Added modifiers property

This commit is contained in:
arookas 2016-02-01 03:08:35 -05:00
parent d070143fba
commit 1842a99954

View file

@ -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,
}
}