Class: Antlr4::Runtime::LexerATNSimulator::SimState

Inherits:
Object
  • Object
show all
Defined in:
lib/antlr4/runtime/lexer_atn_simulator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#char_posObject

Returns the value of attribute char_pos



17
18
19
# File 'lib/antlr4/runtime/lexer_atn_simulator.rb', line 17

def char_pos
  @char_pos
end

#dfa_stateObject

Returns the value of attribute dfa_state



18
19
20
# File 'lib/antlr4/runtime/lexer_atn_simulator.rb', line 18

def dfa_state
  @dfa_state
end

#indexObject

Returns the value of attribute index



15
16
17
# File 'lib/antlr4/runtime/lexer_atn_simulator.rb', line 15

def index
  @index
end

#lineObject

Returns the value of attribute line



16
17
18
# File 'lib/antlr4/runtime/lexer_atn_simulator.rb', line 16

def line
  @line
end

Instance Method Details

#resetObject



20
21
22
23
24
25
# File 'lib/antlr4/runtime/lexer_atn_simulator.rb', line 20

def reset
  @index = -1
  @line = 0
  @char_pos = -1
  @dfa_state = nil
end