Class: Dhaka::LexerSupport::LookaheadAcceptAction
Instance Attribute Summary
Attributes inherited from AcceptAction
#pattern
Instance Method Summary
collapse
#initialize
Instance Method Details
#call(lexer_run) ⇒ Object
429
430
431
|
# File 'lib/lexer/regex_grammar.rb', line 429
def call(lexer_run)
lexer_run.accept_last_saved_checkpoint(pattern)
end
|
#compile_to_ruby_source ⇒ Object
433
434
435
|
# File 'lib/lexer/regex_grammar.rb', line 433
def compile_to_ruby_source
"accept_with_lookahead(#{pattern.inspect})"
end
|
#to_dot ⇒ Object
437
438
439
|
# File 'lib/lexer/regex_grammar.rb', line 437
def to_dot
"Accept With Lookahead #{pattern.inspect}"
end
|