Class: Dhaka::LexerSupport::RootNode

Inherits:
CatNode show all
Defined in:
lib/lexer/regex_grammar.rb

Instance Attribute Summary

Attributes inherited from BinaryNode

#left, #right

Instance Method Summary collapse

Methods inherited from CatNode

#calculate_follow_sets, #first, #last, #nullable

Methods inherited from BinaryNode

#calculate_follow_sets, #to_dot

Methods inherited from ASTNode

#accepting

Constructor Details

#initialize(left) ⇒ RootNode

Returns a new instance of RootNode.



268
269
270
# File 'lib/lexer/regex_grammar.rb', line 268

def initialize(left)
  super(left, AcceptingNode.new())
end

Instance Method Details

#head_node?Boolean

Returns:

  • (Boolean)


276
277
278
# File 'lib/lexer/regex_grammar.rb', line 276

def head_node?
  true
end

#labelObject



272
273
274
# File 'lib/lexer/regex_grammar.rb', line 272

def label
  "start"
end