class RegularExpression::AST::Quantifier::OneOrMore

Public Instance Methods

quantify(start, finish) { |start, finish| ... } click to toggle source
# 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) click to toggle source
# File lib/regular_expression/ast.rb, line 274
def to_dot(parent)
  parent.add_node(object_id, label: "+", shape: "box")
end