class RegularExpression::AST::Quantifier::ZeroOrMore

Public Instance Methods

quantify(start, finish) { |start, start| ... } click to toggle source
# File lib/regular_expression/ast.rb, line 267
def quantify(start, finish)
  yield start, start
  start.add_transition(NFA::Transition::Epsilon.new(finish))
end
to_dot(parent) click to toggle source
# File lib/regular_expression/ast.rb, line 263
def to_dot(parent)
  parent.add_node(object_id, label: "*", shape: "box")
end