Sha256: 56385bf1b3f6adadeee1fe9c3f478ba1624f509311ba2ee7b18711eb448433c7

Contents?: true

Size: 900 Bytes

Versions: 18

Compression:

Stored size: 900 Bytes

Contents

module Regexp::Expression

  module Backreference
    class Base < Regexp::Expression::Base; end

    class Name < Backreference::Base
      attr_reader :name

      def initialize(token)
        @name = token.text[3..-2]
        super(token)
      end
    end

    class Number < Backreference::Base
      attr_reader :number

      def initialize(token)
        @number = token.text[3..-2]
        super(token)
      end
    end

    class NumberRelative      < Backreference::Number; end

    class NameNestLevel       < Backreference::Base; end
    class NumberNestLevel     < Backreference::Base; end

    class NameCall < Backreference::Base
      attr_reader :name

      def initialize(token)
        @name = token.text[3..-2]
        super(token)
      end
    end

    class NumberCall          < Backreference::Base; end
    class NumberCallRelative  < Backreference::Base; end
  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
regexp_parser-0.4.6 lib/regexp_parser/expression/classes/backref.rb
regexp_parser-0.4.5 lib/regexp_parser/expression/classes/backref.rb
regexp_parser-0.4.4 lib/regexp_parser/expression/classes/backref.rb
regexp_parser-0.4.3 lib/regexp_parser/expression/classes/backref.rb
regexp_parser-0.4.2 lib/regexp_parser/expression/classes/backref.rb
regexp_parser-0.4.1 lib/regexp_parser/expression/classes/backref.rb
regexp_parser-0.4.0 lib/regexp_parser/expression/classes/backref.rb
regexp_parser-0.3.6 lib/regexp_parser/expression/classes/backref.rb
regexp_parser-0.3.5 lib/regexp_parser/expression/classes/backref.rb
regexp_parser-0.3.4 lib/regexp_parser/expression/classes/backref.rb
regexp_parser-0.3.3 lib/regexp_parser/expression/classes/backref.rb
regexp_parser-0.3.2 lib/regexp_parser/expression/classes/backref.rb
regexp_parser-0.3.1 lib/regexp_parser/expression/classes/backref.rb
regexp_parser-0.3.0 lib/regexp_parser/expression/classes/backref.rb
regexp_parser-0.2.1 lib/regexp_parser/expression/classes/backref.rb
regexp_parser-0.2.0 lib/regexp_parser/expression/classes/backref.rb
regexp_parser-0.1.6 lib/regexp_parser/expression/classes/backref.rb
regexp_parser-0.1.5 lib/regexp_parser/expression/classes/backref.rb