Class: Dhaka::LexerSupport::ZeroOrMoreNode
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
Instance Method Details
#calculate_follow_sets ⇒ Object
291
292
293
294
295
296
|
# File 'lib/dhaka/lexer/regex_grammar.rb', line 291
def calculate_follow_sets
super
last.each do |leaf_node|
leaf_node.follow_set.merge first
end
end
|
#label ⇒ Object
283
284
285
|
# File 'lib/dhaka/lexer/regex_grammar.rb', line 283
def label
"*"
end
|
#nullable ⇒ Object
287
288
289
|
# File 'lib/dhaka/lexer/regex_grammar.rb', line 287
def nullable
true
end
|