Class: Dhaka::LexerSupport::RootNode

Inherits:
CatNode show all
Defined in:
lib/dhaka/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, #initialize, #to_dot

Methods inherited from ASTNode

#accepting, #checkpoint

Constructor Details

This class inherits a constructor from Dhaka::LexerSupport::BinaryNode

Instance Method Details

#head_node?Boolean

Returns:

  • (Boolean)


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

def head_node?
  true
end

#labelObject



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

def label
  "start"
end