Class: Antlr4::Runtime::LexerDFASerializer
- Inherits:
-
DFASerializer
- Object
- DFASerializer
- Antlr4::Runtime::LexerDFASerializer
- Defined in:
- lib/antlr4/runtime/lexer_dfa_serializer.rb
Instance Method Summary collapse
- #edge_label(i) ⇒ Object
-
#initialize(dfa) ⇒ LexerDFASerializer
constructor
A new instance of LexerDFASerializer.
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 |