class Regex::AtomicExpression

Abstract class. A valid regular expression that cannot be further decomposed into sub-expressions.

Public Instance Methods

atomic?() click to toggle source

Redefined method. @return [TrueClass] Return true since it may not have any child.

# File lib/regex/atomic_expression.rb, line 13
def atomic?
  return true
end
done!() click to toggle source

Notification that the parse tree construction is complete.

# File lib/regex/atomic_expression.rb, line 18
def done!
  # Do nothing
end
lazy!() click to toggle source

Notification that all quantifiers are lazy

# File lib/regex/atomic_expression.rb, line 23
def lazy!
  # Do nothing
end