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



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

def accepting
  true
end

#action(pattern) ⇒ Object



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

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

#calculate_follow_setsObject



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

def calculate_follow_sets
end

#characterObject



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

def character
end

#firstObject



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

def first
  Set.new([self])
end

#to_dot(graph) ⇒ Object



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

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