Method: Lrama::Grammar#build_code

Defined in:
lib/lrama/grammar.rb

#build_code(type, token_code) ⇒ Object



131
132
133
134
# File 'lib/lrama/grammar.rb', line 131

def build_code(type, token_code)
  build_references(token_code)
  Code.new(type: type, token_code: token_code)
end