api.ast.parser#

Functions#

is_scalar_array(var)

parse(expr, settings[, backend])

This function takes a Psydac Ast and returns a Pyccel Ast

random_string(n)

Classes#

Inheritance diagram of psydac.api.ast.parser

Parser(settings[, backend])

This class takes a Psyadac Ast and transforms it to a Pyccel Ast by calling the Parser.doit method

Shape(*args, **kwargs)

Details#

random_string(n)[source]#
class Shape(*args: Any, **kwargs: Any)[source]#

Bases: Basic

property arg#
is_scalar_array(var)[source]#
parse(expr, settings, backend=None)[source]#

This function takes a Psydac Ast and returns a Pyccel Ast

Parameters:
expr: <Psydac Ast>

psydac ast node

settings<dict>

dictionary that continas number of dimension, mappings and target if provided

Returns:
astPyccel Ast

pyccel abstract syntax tree that can be translated into a Python code

class Parser(settings, backend=None)[source]#

Bases: object

This class takes a Psyadac Ast and transforms it to a Pyccel Ast by calling the Parser.doit method

property settings#
property dim#
property nderiv#
property mapping#
property target#
doit(expr, **settings)[source]#
insert_variables(*args)[source]#
get_shape(expr)[source]#