Method: Racc::SymbolTable#intern

Defined in:
lib/racc/grammar.rb

#intern(val, dummy = false) ⇒ Object



889
890
891
892
893
894
895
896
# File 'lib/racc/grammar.rb', line 889

def intern(val, dummy = false)
  @cache[val] ||=
      begin
        sym = Sym.new(val, dummy)
        @symbols.push sym
        sym
      end
end