Coverage for /usr/lib/python3/dist-packages/sympy/codegen/__init__.py: 100%
2 statements
« prev ^ index » next coverage.py v7.9.1, created at 2025-06-14 15:55 +0200
« prev ^ index » next coverage.py v7.9.1, created at 2025-06-14 15:55 +0200
1""" The ``sympy.codegen`` module contains classes and functions for building
2abstract syntax trees of algorithms. These trees may then be printed by the
3code-printers in ``sympy.printing``.
5There are several submodules available:
6- ``sympy.codegen.ast``: AST nodes useful across multiple languages.
7- ``sympy.codegen.cnodes``: AST nodes useful for the C family of languages.
8- ``sympy.codegen.fnodes``: AST nodes useful for Fortran.
9- ``sympy.codegen.cfunctions``: functions specific to C (C99 math functions)
10- ``sympy.codegen.ffunctions``: functions specific to Fortran (e.g. ``kind``).
14"""
15from .ast import (
16 Assignment, aug_assign, CodeBlock, For, Attribute, Variable, Declaration,
17 While, Scope, Print, FunctionPrototype, FunctionDefinition, FunctionCall
18)
20__all__ = [
21 'Assignment', 'aug_assign', 'CodeBlock', 'For', 'Attribute', 'Variable',
22 'Declaration', 'While', 'Scope', 'Print', 'FunctionPrototype',
23 'FunctionDefinition', 'FunctionCall',
24]