pyccel.parser.syntax.basic module#
- class pyccel.parser.syntax.basic.BasicStmt(**kwargs)[source]#
Bases:
objectBase class for all objects in Pyccel.
Conventions:
1) Every extension class must provide the properties stmt_vars and local_vars 2) stmt_vars describes the list of all variables that are created by the statement. 3) local_vars describes the list of all local variables to the statement, like the index of a For statement. 4) Every extension must implement the update function. This function is called to prepare for the applied property (for example the expr 1) Every extension class must provide the properties stmt_vars and local_vars. 2) stmt_vars describes the list of all variables that are created by the statement. 3) local_vars describes the list of all local variables to the statement, like the index of a For statement. 4) Every extension must implement the update function. This function is called to prepare for the applied property (for example the expr property).
- Parameters:
**kwargs – Additional unnecessary arguments provided by textx.
- property declarations#
Returns all declarations related to the current statement by looking into the global dictionary declarations. the filter is given by stmt_vars and local_vars, which must be provided by every extension of the base class.
- property local_vars#
must be defined by the statement.
- property stmt_vars#
must be defined by the statement.