Class: RegularExpression::AST::Quantifier::OneOrMore
- Inherits:
-
Object
- Object
- RegularExpression::AST::Quantifier::OneOrMore
- Defined in:
- lib/regular_expression/ast.rb
Instance Method Summary collapse
Instance Method Details
#quantify(start, finish) {|start, finish| ... } ⇒ Object
278 279 280 281 |
# File 'lib/regular_expression/ast.rb', line 278 def quantify(start, finish) yield start, finish finish.add_transition(NFA::Transition::Epsilon.new(start)) end |
#to_dot(parent) ⇒ Object
274 275 276 |
# File 'lib/regular_expression/ast.rb', line 274 def to_dot(parent) parent.add_node(object_id, label: "+", shape: "box") end |