💾 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
⬅️ Previous capture (2022-01-08)
-=-=-=-=-=-=-
This module has no docstring.
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>
with_traceback(...) Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.
args = <attribute 'args' of 'BaseException' objects>
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(cls) Class decorator to generate rules from parameterized rule templates. See `parameterized` for more information on parameterized rules.