Method: EBNF::LL1::Lexer::Token#to_hash

Defined in:
lib/ebnf/ll1/lexer.rb

#to_hashHash

Returns a hash table representation of this token.

Returns:

  • (Hash)


429
430
431
# File 'lib/ebnf/ll1/lexer.rb', line 429

def to_hash
  {type: @type, value: @value}
end