Class: Antlr4::Runtime::DFAState::PredPrediction

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#altObject

Returns the value of attribute alt.



36
37
38
# File 'lib/antlr4/runtime/dfa_state.rb', line 36

def alt
  @alt
end

#predObject

never null at least SemanticContext::NONE



35
36
37
# File 'lib/antlr4/runtime/dfa_state.rb', line 35

def pred
  @pred
end

Instance Method Details

#initiailize(pred, alt) ⇒ Object



38
39
40
41
# File 'lib/antlr4/runtime/dfa_state.rb', line 38

def initiailize(pred, alt)
  @alt = alt
  @pred = pred
end

#to_sObject



43
44
45
# File 'lib/antlr4/runtime/dfa_state.rb', line 43

def to_s
  '(' + @pred.to_s + ', ' + @alt.to_s + ')'
end