Added indexer

This commit is contained in:
arookas 2016-02-01 15:41:31 -05:00
parent f76c5126b9
commit 1d324baf9d

View file

@ -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);
}