Class: Dhaka::LexerSupport::AcceptingNode

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

Direct Known Subclasses

LookaheadAcceptingNode

Instance Method Summary collapse

Methods inherited from ASTNode

#checkpoint

Instance Method Details

#acceptingObject



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

def accepting
  true
end

#action(pattern) ⇒ Object



387
388
389
# File 'lib/lexer/regex_grammar.rb', line 387

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

#calculate_follow_setsObject



395
396
# File 'lib/lexer/regex_grammar.rb', line 395

def calculate_follow_sets
end

#characterObject



384
385
# File 'lib/lexer/regex_grammar.rb', line 384

def character
end

#firstObject



391
392
393
# File 'lib/lexer/regex_grammar.rb', line 391

def first
  Set.new([self])
end

#to_dot(graph) ⇒ Object



398
399
400
# File 'lib/lexer/regex_grammar.rb', line 398

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