Method: EBNF::LL1::Lexer::Token#to_hash
- Defined in:
- lib/ebnf/ll1/lexer.rb
#to_hash ⇒ Hash
Returns a hash table representation of this token.
429 430 431 |
# File 'lib/ebnf/ll1/lexer.rb', line 429 def to_hash {type: @type, value: @value} end |