💾 Archived View for tris.fyi › pydoc › pycparser.plyparser captured on 2022-03-01 at 16:06:13. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-01-08)

-=-=-=-=-=-=-

Back to module index

Go to module by name

pycparser

pycparser.plyparser

This module has no docstring.

Classes

Coord

 Coordinates of a syntactic element. Consists of:
            - File name
            - Line number
            - (optional) column number, for the Lexer
    
column = <member 'column' of 'Coord' objects>
file = <member 'file' of 'Coord' objects>
line = <member 'line' of 'Coord' objects>

PLYParser

ParseError

with_traceback(...)

  Exception.with_traceback(tb) --
      set self.__traceback__ to tb and return self.
args = <attribute 'args' of 'BaseException' objects>

Functions

parameterized

parameterized(*params)

   Decorator to create parameterized rules.

      Parameterized rule methods must be named starting with 'p_' and contain
      'xxx', and their docstrings may contain 'xxx' and 'yyy'. These will be
      replaced by the given parameter tuples. For example, ``p_xxx_rule()`` with
      docstring 'xxx_rule  : yyy' when decorated with
      ``@parameterized(('id', 'ID'))`` produces ``p_id_rule()`` with the docstring
      'id_rule  : ID'. Using multiple tuples produces multiple rules.
    

template

template(cls)

   Class decorator to generate rules from parameterized rule templates.

      See `parameterized` for more information on parameterized rules.
    

Modules

warnings