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



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

def alt
  @alt
end

#predObject

never null at least SemanticContext::NONE



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

def pred
  @pred
end

Instance Method Details

#initiailize(pred, alt) ⇒ Object



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

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

#to_sObject



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

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