ammar/regexp_parser

View on GitHub
lib/regexp_parser/syntax/token/meta.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Regexp::Syntax
  module Token
    module Meta
      Basic       = %i[dot]
      Alternation = %i[alternation]
      Extended    = Basic + Alternation

      All = Extended
      Type = :meta
    end

    Map[Meta::Type] = Meta::All

    # alias for symmetry between Token::* and Expression::*
    module Alternation
      All  = Meta::Alternation
      Type = Meta::Type
    end
  end
end