Class: Dhaka::LexerSupport::AcceptingNode

Inherits:
ASTNode
  • Object
show all
Defined in:
lib/dhaka/lexer/regex_grammar.rb

Direct Known Subclasses

LookaheadAcceptingNode

Instance Method Summary collapse

Methods inherited from ASTNode

#checkpoint

Instance Method Details

#acceptingObject



362
363
364
# File 'lib/dhaka/lexer/regex_grammar.rb', line 362

def accepting
  true
end

#action(pattern) ⇒ Object



369
370
371
# File 'lib/dhaka/lexer/regex_grammar.rb', line 369

def action(pattern)
  AcceptAction.new(pattern)
end

#calculate_follow_setsObject



377
378
# File 'lib/dhaka/lexer/regex_grammar.rb', line 377

def calculate_follow_sets
end

#characterObject



366
367
# File 'lib/dhaka/lexer/regex_grammar.rb', line 366

def character
end

#firstObject



373
374
375
# File 'lib/dhaka/lexer/regex_grammar.rb', line 373

def first
  Set.new([self])
end

#to_dot(graph) ⇒ Object



380
381
382
# File 'lib/dhaka/lexer/regex_grammar.rb', line 380

def to_dot(graph)
  graph.node(self, :label => '#')
end