Class: Dhaka::LexerSupport::ZeroOrMoreNode

Inherits:
UnaryNode show all
Defined in:
lib/dhaka/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



290
291
292
293
294
295
# File 'lib/dhaka/lexer/regex_grammar.rb', line 290

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

#labelObject



282
283
284
# File 'lib/dhaka/lexer/regex_grammar.rb', line 282

def label
  "*"
end

#nullableObject



286
287
288
# File 'lib/dhaka/lexer/regex_grammar.rb', line 286

def nullable
  true
end