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)


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

def head_node?
  true
end

#labelObject



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

def label
  "start"
end