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-1.2.0 lib/regexp_parser/syntax/tokens/quantifier.rb
regexp_parser-1.1.0 lib/regexp_parser/syntax/tokens/quantifier.rb
regexp_parser-1.0.0 lib/regexp_parser/syntax/tokens/quantifier.rb
regexp_parser-0.5.0 lib/regexp_parser/syntax/tokens/quantifier.rb
regexp_parser-0.4.13 lib/regexp_parser/syntax/tokens/quantifier.rb
regexp_parser-0.4.12 lib/regexp_parser/syntax/tokens/quantifier.rb
regexp_parser-0.4.11 lib/regexp_parser/syntax/tokens/quantifier.rb
regexp_parser-0.4.10 lib/regexp_parser/syntax/tokens/quantifier.rb
regexp_parser-0.4.9 lib/regexp_parser/syntax/tokens/quantifier.rb
regexp_parser-0.4.8 lib/regexp_parser/syntax/tokens/quantifier.rb
regexp_parser-0.4.7 lib/regexp_parser/syntax/tokens/quantifier.rb
regexp_parser-0.4.6 lib/regexp_parser/syntax/tokens/quantifier.rb
regexp_parser-0.4.5 lib/regexp_parser/syntax/tokens/quantifier.rb
regexp_parser-0.4.4 lib/regexp_parser/syntax/tokens/quantifier.rb
regexp_parser-0.4.3 lib/regexp_parser/syntax/tokens/quantifier.rb
regexp_parser-0.4.2 lib/regexp_parser/syntax/tokens/quantifier.rb
regexp_parser-0.4.1 lib/regexp_parser/syntax/tokens/quantifier.rb
regexp_parser-0.4.0 lib/regexp_parser/syntax/tokens/quantifier.rb
regexp_parser-0.3.6 lib/regexp_parser/syntax/tokens/quantifier.rb
regexp_parser-0.3.5 lib/regexp_parser/syntax/tokens/quantifier.rb