class Antlr4::Runtime::LexerATNConfig

Attributes

lexer_action_executor[RW]
passed_through_non_greedy_decision[RW]

Public Class Methods

create_from_config(*args) click to toggle source
# File lib/antlr4/runtime/lexer_atn_config.rb, line 5
def create_from_config(*args)
  new.tap { |atn| atn.lexer_atn_config3(*args) }
end
create_from_config2(*args) click to toggle source
# File lib/antlr4/runtime/lexer_atn_config.rb, line 9
def create_from_config2(*args)
  new.tap { |atn| atn.lexer_atn_config5(*args) }
end
new() click to toggle source
Calls superclass method Antlr4::Runtime::ATNConfig::new
# File lib/antlr4/runtime/lexer_atn_config.rb, line 17
def initialize
  super
  @passed_through_non_greedy_decision = false
  @lexer_action_executor = nil
end

Public Instance Methods

check_non_greedy_decision(source, target) click to toggle source
# File lib/antlr4/runtime/lexer_atn_config.rb, line 53
def check_non_greedy_decision(source, target)
  source.passed_through_non_greedy_decision || target.is_a?(DecisionState) && target.non_greedy
end
lexer_atn_config1(state, alt, context) click to toggle source
# File lib/antlr4/runtime/lexer_atn_config.rb, line 23
def lexer_atn_config1(state, alt, context)
  atn_config2(state, alt, context, SemanticContext::NONE)
  @passed_through_non_greedy_decision = false
  @lexer_action_executor = nil
end
lexer_atn_config2(state, alt, context, lexer_action_executor) click to toggle source
# File lib/antlr4/runtime/lexer_atn_config.rb, line 29
def lexer_atn_config2(state, alt, context, lexer_action_executor)
  atn_config7(state, alt, context, SemanticContext::NONE)
  @lexer_action_executor = lexer_action_executor
  @passed_through_non_greedy_decision = false
end
lexer_atn_config3(c, state) click to toggle source
# File lib/antlr4/runtime/lexer_atn_config.rb, line 35
def lexer_atn_config3(c, state)
  atn_config7(c, state, c.context, c.semantic_context)
  @lexer_action_executor = c.lexer_action_executor
  @passed_through_non_greedy_decision = check_non_greedy_decision(c, state)
end
lexer_atn_config4(c, state, lexer_action_executor) click to toggle source
# File lib/antlr4/runtime/lexer_atn_config.rb, line 41
def lexer_atn_config4(c, state, lexer_action_executor)
  atn_config7(c, state, c.context, c.semantic_context)
  @lexer_action_executor = lexer_action_executor
  @passed_through_non_greedy_decision = check_non_greedy_decision(c, state)
end
lexer_atn_config5(c, state, context) click to toggle source
# File lib/antlr4/runtime/lexer_atn_config.rb, line 47
def lexer_atn_config5(c, state, context)
  atn_config7(c, state, context, c.semantic_context)
  @lexer_action_executor = c.lexer_action_executor
  @passed_through_non_greedy_decision = check_non_greedy_decision(c, state)
end