code: def getSymbols(self):
          
          symbollist = []
          for rule in self.productions:
              for symbol in rule.leftside + rule.rightside:
                  if symbol not in symbollist:
                      symbollist.append(symbol)
          symbollist += self.terminal_symbols
          return symbollist
docs: Returns every symbol