private SymbolCollection CreateSymbols(CGTContent content) { SymbolCollection symbols = new SymbolCollection(); foreach (SymbolRecord symbolRecord in content.SymbolTable) { Symbol symbol = SymbolFactory.CreateSymbol(symbolRecord); symbols.Add(symbol); } return(symbols); }
private SymbolCollection FindExpectedTokens() { SymbolCollection symbols = new SymbolCollection(); State state = stateStack.Peek(); foreach (Action action in state.Actions) { if ((action is ShiftAction) || (action is ReduceAction) || (action is AcceptAction)) { symbols.Add(action.symbol); } } return(symbols); }
private SymbolCollection FindExpectedTokens() { SymbolCollection symbols = new SymbolCollection(); State state = stateStack.Peek(); foreach(Action action in state.Actions) { if ((action is ShiftAction) || (action is ReduceAction) || (action is AcceptAction)) { symbols.Add(action.symbol); } } return symbols; }
private SymbolCollection CreateSymbols(CGTContent content) { SymbolCollection symbols = new SymbolCollection(); foreach (SymbolRecord symbolRecord in content.SymbolTable) { Symbol symbol = SymbolFactory.CreateSymbol(symbolRecord); symbols.Add(symbol); } return symbols; }