# File lib/racc/grammar.rb, line 898 def delete(sym) @symbols.delete sym @cache.delete sym.value end
# File lib/racc/grammar.rb, line 909 def each(&block) @symbols.each(&block) end
# File lib/racc/grammar.rb, line 925 def each_nonterminal(&block) @nterms.each(&block) end
# File lib/racc/grammar.rb, line 917 def each_terminal(&block) @terms.each(&block) end
# File lib/racc/grammar.rb, line 929 def fix terms, nterms = @symbols.partition {|s| s.terminal? } @symbols = terms + nterms @terms = terms @nterms = nterms @nt_base = terms.size fix_ident check_terminals end
# File lib/racc/grammar.rb, line 886 def intern(val, dummy = false) @cache[val] ||= begin sym = Sym.new(val, dummy) @symbols.push sym sym end end
Generated with the Darkfish Rdoc Generator 2.