Class: Antlr4::Runtime::LexerDFASerializer

Inherits:
DFASerializer show all
Defined in:
lib/antlr4/runtime/lexer_dfa_serializer.rb

Instance Method Summary collapse

Methods inherited from DFASerializer

#init_from_token_names, #init_from_vocabulary, #state_string, #to_s

Constructor Details

#initialize(dfa) ⇒ LexerDFASerializer

Returns a new instance of LexerDFASerializer.



4
5
6
# File 'lib/antlr4/runtime/lexer_dfa_serializer.rb', line 4

def initialize(dfa)
  init_from_vocabulary(dfa, VocabularyImpl::EMPTY_VOCABULARY)
end

Instance Method Details

#edge_label(i) ⇒ Object



8
9
10
# File 'lib/antlr4/runtime/lexer_dfa_serializer.rb', line 8

def edge_label(i)
  "'" << i.to_s << "'"
end