Class: Dhaka::LexerSupport::OneOrMoreNode
- Defined in:
- lib/lexer/regex_grammar.rb
Instance Attribute Summary
Attributes inherited from UnaryNode
Instance Method Summary collapse
Methods inherited from UnaryNode
#first, #initialize, #last, #nullable, #to_dot
Methods inherited from ASTNode
Constructor Details
This class inherits a constructor from Dhaka::LexerSupport::UnaryNode
Instance Method Details
#calculate_follow_sets ⇒ Object
331 332 333 334 335 336 |
# File 'lib/lexer/regex_grammar.rb', line 331 def calculate_follow_sets super last.each do |leaf_node| leaf_node.follow_set.merge first end end |
#label ⇒ Object
327 328 329 |
# File 'lib/lexer/regex_grammar.rb', line 327 def label "+" end |