# File automaten.rb, line 827 def FirstSets firstString = String.new @grammar.getRules.each_value do |x| links = x.getSymbol tmpMenge = Menge.new(x.getAlts) tmpMenge.each do |i| i = i.to_s.split firstString = firstString + links.to_s+" -> "+i.to_s+" "+FIRST(i,Menge.new([])).to_s + "\n" end end return firstString end