Class: Regexp::Syntax::Ruby::V186

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

Direct Known Subclasses

V187

Constant Summary

Constants included from Token

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

Instance Method Summary collapse

Methods inherited from Base

#excludes, #implementation, #implements, #implements!, #implements?, #normalize, #normalize_backref, #normalize_group

Constructor Details

#initializeV186

Returns a new instance of V186.



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/regexp_parser/syntax/ruby/1.8.6.rb', line 7

def initialize
  super

  implements :anchor, Anchor::All
  implements :assertion, Assertion::Lookahead
  implements :backref, [:number]

  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 + CharacterSet::Types +
    CharacterSet::POSIX::Standard

  implements :type,
    CharacterType::Extended
end