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