Method: Racc::SymbolTable#initialize

Defined in:
lib/racc/grammar.rb

#initializeSymbolTable

Returns a new instance of SymbolTable.



950
951
952
953
954
955
956
# File 'lib/racc/grammar.rb', line 950

def initialize
  @symbols = []   # :: [Racc::Sym]
  @cache   = {}   # :: {(String|Symbol) => Racc::Sym}
  @dummy  = intern(:$start, true)
  @anchor = intern(false, true)     # Symbol ID = 0
  @error  = intern(:error, false)   # Symbol ID = 1
end