Added modifiers property
This commit is contained in:
parent
d070143fba
commit
1842a99954
1 changed files with 12 additions and 0 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue