Class: Dhaka::LexerSupport::ZeroOrMoreNode

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

Instance Attribute Summary

Attributes inherited from UnaryNode

#child

Instance Method Summary collapse

Methods inherited from UnaryNode

#first, #initialize, #last, #to_dot

Methods inherited from ASTNode

#accepting, #checkpoint

Constructor Details

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

Instance Method Details

#calculate_follow_setsObject



308
309
310
311
312
313
# File 'lib/lexer/regex_grammar.rb', line 308

def calculate_follow_sets
  super
  last.each do |leaf_node| 
    leaf_node.follow_set.merge first
  end
end

#labelObject



300
301
302
# File 'lib/lexer/regex_grammar.rb', line 300

def label
  "*"
end

#nullableObject



304
305
306
# File 'lib/lexer/regex_grammar.rb', line 304

def nullable
  true
end