Added indexer
This commit is contained in:
parent
f76c5126b9
commit
1d324baf9d
1 changed files with 4 additions and 0 deletions
|
@ -23,6 +23,10 @@ namespace arookas {
|
|||
public IEnumerable<sunVariableSymbol> Variables { get { return mSymbols.OfType<sunVariableSymbol>(); } }
|
||||
public IEnumerable<sunConstantSymbol> Constants { get { return mSymbols.OfType<sunConstantSymbol>(); } }
|
||||
|
||||
public sunSymbol this[int index] {
|
||||
get { return mSymbols[index]; }
|
||||
}
|
||||
|
||||
public sunSymbolTable() {
|
||||
mSymbols = new List<sunSymbol>(10);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue