class_docstr: A simple pyparsing-based parser for fontconfig-style patterns.
  
  See the `fontconfig pattern specification
  <https://www.freedesktop.org/software/fontconfig/fontconfig-user.html>`_
  for more information.
class_docstr_tok: ["A","simple","pyparsing-based","parser","for","fontconfig-style","patterns",".","See","the","`","fontconfig","pattern","specification","<","https",":","\/\/www.freedesktop.org\/software\/fontconfig\/fontconfig-user.html",">","`","_","for","more","information","."]
code: def __init__(self):
      family = Regex(
          r"([^%s]|(\\[%s]))*" % (family_punc, family_punc)
      ).setParseAction(self._family)
      size = Regex(r"([0-9]+\.?[0-9]*|\.[0-9]+)").setParseAction(
          self._size
      )
      name = Regex(r"[a-z]+").setParseAction(self._name)
      value = Regex(
          r"([^%s]|(\\[%s]))*" % (value_punc, value_punc)
      ).setParseAction(self._value)
  
      families = (
          family + ZeroOrMore(Literal(",") + family)
      ).setParseAction(self._families)
  
      point_sizes = (
          size + ZeroOrMore(Literal(",") + size)
      ).setParseAction(self._point_sizes)
  
      property = (
          (
              name
              + Suppress(Literal("="))
              + value
              + ZeroOrMore(Suppress(Literal(",")) + value)
          )
          | name
      ).setParseAction(self._property)
  
      pattern = (
          Optional(families)
          + Optional(Literal("-") + point_sizes)
          + ZeroOrMore(Literal(":") + property)
          + StringEnd()
      )
  
      self._parser = pattern
      self.ParseException = ParseException
  
file_path: catboost/contrib/python/matplotlib/py2/matplotlib/fontconfig_pattern.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import re
  from pyparsing import Literal, ZeroOrMore, Optional, Regex, StringEnd, ParseException, Suppress
label_desc: Use image node_id 1 to create a new FontconfigPatternParser object from inherited base classes: object with example: obj = FontconfigPatternParser()