Class: Regexp::Syntax::V1_8_6

Inherits:
Base
  • Object
show all
Defined in:
lib/regexp_parser/syntax/versions/1.8.6.rb

Direct Known Subclasses

V1_9_1

Constant Summary

Constants included from Token

Token::All, Token::Map, Token::Types

Instance Method Summary collapse

Methods inherited from Base

#excludes, #implementations, #implements, #implements!, #implements?, inspect, #normalize, #normalize_backref, #normalize_group

Constructor Details

#initializeV1_8_6

Returns a new instance of V1_8_6.



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/regexp_parser/syntax/versions/1.8.6.rb', line 3

def initialize
  super

  implements :anchor, Anchor::All
  implements :assertion, Assertion::Lookahead
  implements :backref, [:number]
  implements :posixclass, PosixClass::Standard
  implements :escape,
    Escape::Basic + Escape::Backreference +
    Escape::ASCII + Escape::Meta + Escape::Control

  implements :group, Group::All

  implements :meta, Meta::Extended

  implements :quantifier,
    Quantifier::Greedy + Quantifier::Reluctant +
    Quantifier::Interval + Quantifier::IntervalReluctant

  implements :set, CharacterSet::OpenClose + CharacterSet::Extended

  implements :type,
    CharacterType::Extended
end