Sha256: e80471fea879e7018f440af3a63b1ab7166c2e4a88a2eefc96bc05ee4de86e31

Contents?: true

Size: 793 Bytes

Versions: 29

Compression:

Stored size: 793 Bytes

Contents

module Regexp::Syntax
  module Token

    module Quantifier
      Greedy    = [
        :zero_or_one,
        :zero_or_more,
        :one_or_more
      ]

      Reluctant = [
        :zero_or_one_reluctant,
        :zero_or_more_reluctant,
        :one_or_more_reluctant
      ]

      Possessive  = [
        :zero_or_one_possessive,
        :zero_or_more_possessive,
        :one_or_more_possessive
      ]

      Interval             = [:interval]
      IntervalReluctant    = [:interval_reluctant]
      IntervalPossessive   = [:interval_possessive]

      IntervalAll = Interval + IntervalReluctant +
                    IntervalPossessive

      All = Greedy + Reluctant + Possessive + IntervalAll
      Type = :quantifier
    end

    Map[Quantifier::Type] = Quantifier::All

  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
regexp_parser-0.3.4 lib/regexp_parser/syntax/tokens/quantifier.rb
regexp_parser-0.3.3 lib/regexp_parser/syntax/tokens/quantifier.rb
regexp_parser-0.3.2 lib/regexp_parser/syntax/tokens/quantifier.rb
regexp_parser-0.3.1 lib/regexp_parser/syntax/tokens/quantifier.rb
regexp_parser-0.3.0 lib/regexp_parser/syntax/tokens/quantifier.rb
regexp_parser-0.2.1 lib/regexp_parser/syntax/tokens/quantifier.rb
regexp_parser-0.2.0 lib/regexp_parser/syntax/tokens/quantifier.rb
regexp_parser-0.1.6 lib/regexp_parser/syntax/tokens/quantifier.rb
regexp_parser-0.1.5 lib/regexp_parser/syntax/tokens/quantifier.rb