File: printers.rst

package info (click to toggle)
pglast 7.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,368 kB
  • sloc: python: 13,349; sql: 2,405; makefile: 159
file content (36 lines) | stat: -rw-r--r-- 970 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
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
33
34
35
36
.. -*- coding: utf-8 -*-
.. :Project:   pglast — Per-node specialized printer functions
.. :Created:   gio 10 ago 2017 13:23:18 CEST
.. :Author:    Lele Gaifax <lele@metapensiero.it>
.. :License:   GNU General Public License version 3 or later
.. :Copyright: © 2017, 2018, 2021, 2022, 2024 Lele Gaifax
..

==========================================================
 :mod:`pglast.printers` --- Specialized printer functions
==========================================================

.. module:: pglast.printers
   :synopsis: Specialized printer functions

This module implements the specialized functions that define how a particular
:class:`~.ast.Node` will be serialized.

.. autodata:: NODE_PRINTERS

.. autodata:: SPECIAL_FUNCTIONS

.. autoexception:: PrinterAlreadyPresentError

.. autofunction:: get_printer_for_node

.. autofunction:: node_printer

.. autofunction:: special_function

.. toctree::
   :maxdepth: 2
   :caption: Printer functions

   ddl
   dml