__init__.py 974 B

123456789101112131415161718192021222324
  1. """ The ``sympy.codegen`` module contains classes and functions for building
  2. abstract syntax trees of algorithms. These trees may then be printed by the
  3. code-printers in ``sympy.printing``.
  4. There are several submodules available:
  5. - ``sympy.codegen.ast``: AST nodes useful across multiple languages.
  6. - ``sympy.codegen.cnodes``: AST nodes useful for the C family of languages.
  7. - ``sympy.codegen.fnodes``: AST nodes useful for Fortran.
  8. - ``sympy.codegen.cfunctions``: functions specific to C (C99 math functions)
  9. - ``sympy.codegen.ffunctions``: functions specific to Fortran (e.g. ``kind``).
  10. """
  11. from .ast import (
  12. Assignment, aug_assign, CodeBlock, For, Attribute, Variable, Declaration,
  13. While, Scope, Print, FunctionPrototype, FunctionDefinition, FunctionCall
  14. )
  15. __all__ = [
  16. 'Assignment', 'aug_assign', 'CodeBlock', 'For', 'Attribute', 'Variable',
  17. 'Declaration', 'While', 'Scope', 'Print', 'FunctionPrototype',
  18. 'FunctionDefinition', 'FunctionCall',
  19. ]