Peano
Loading...
Searching...
No Matches
exahype2.api.dslhype.Parser.Parser Class Reference

Public Member Functions

 parse (self, function, template_arguments, functor_arguments, inuse_pde_terms, namespace=[], stateless=False, use_accelerator=False, mlir_omp=False, use_memory_manager=False, function_name=None)
 

Data Fields

 inuse_pde_terms
 

Protected Member Functions

 _parse_constant (self, ast.Constant constant, type_name=None)
 
 _parse_call (self, ast.Call call)
 
 _parse_diagonal_matrix_vector_product (self, ast.Call call)
 
 _parse_matrix_vector_product (self, ast.Call call)
 
 _parse_diagonal_matrix_constructor (self, ast.Call constructor)
 
 _parse_matrix_constructor (self, ast.Call constructor)
 
 _parse_kronecker_product (self, ast.Call product)
 
 _parse_patch_constructor (self, ast.Call constructor, isFace=False)
 
 _parse_unary_operation (self, ast.UnaryOp unary_operation)
 
 _parse_binary_operation (self, ast.BinOp binary_operation)
 
 _parse_subscript (self, ast.Subscript subscript)
 
 _parse_comparison (self, ast.Compare comparison)
 
 _parse_expression (self, expression)
 
 _parse_assignment_with_declaration (self, ast.Assign assignment_with_declaration)
 
 _parse_assignment_without_declaration (self, ast.Assign assignment_with_declaration)
 
 _parse_assignment (self, ast.Assign assignment)
 
 _parse_if (self, ast.If statement)
 
 _parse_statement (self, ast.Expr statement)
 
 _parse_function (self, ast.FunctionDef function, template, functor_arguments, namespaces, stateless, use_accelerator, top_level=False, function_name=None)
 

Detailed Description

Definition at line 5 of file Parser.py.

Member Function Documentation

◆ _parse_assignment()

exahype2.api.dslhype.Parser.Parser._parse_assignment (   self,
ast.Assign  assignment 
)
protected

Definition at line 282 of file Parser.py.

References exahype2.api.dslhype.Parser.Parser._parse_assignment_with_declaration(), and exahype2.api.dslhype.Parser.Parser._parse_assignment_without_declaration().

Referenced by exahype2.api.dslhype.Parser.Parser._parse_statement().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _parse_assignment_with_declaration()

exahype2.api.dslhype.Parser.Parser._parse_assignment_with_declaration (   self,
ast.Assign  assignment_with_declaration 
)
protected

Definition at line 234 of file Parser.py.

References exahype2.api.dslhype.Parser.Parser._parse_expression().

Referenced by exahype2.api.dslhype.Parser.Parser._parse_assignment().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _parse_assignment_without_declaration()

exahype2.api.dslhype.Parser.Parser._parse_assignment_without_declaration (   self,
ast.Assign  assignment_with_declaration 
)
protected

Definition at line 268 of file Parser.py.

References exahype2.api.dslhype.Parser.Parser._parse_expression().

Referenced by exahype2.api.dslhype.Parser.Parser._parse_assignment().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _parse_binary_operation()

exahype2.api.dslhype.Parser.Parser._parse_binary_operation (   self,
ast.BinOp  binary_operation 
)
protected

Definition at line 167 of file Parser.py.

References exahype2.api.dslhype.Parser.Parser._parse_expression().

Referenced by exahype2.api.dslhype.Parser.Parser._parse_expression().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _parse_call()

◆ _parse_comparison()

exahype2.api.dslhype.Parser.Parser._parse_comparison (   self,
ast.Compare  comparison 
)
protected

Definition at line 204 of file Parser.py.

References exahype2.api.dslhype.Parser.Parser._parse_expression().

Referenced by exahype2.api.dslhype.Parser.Parser._parse_expression().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _parse_constant()

exahype2.api.dslhype.Parser.Parser._parse_constant (   self,
ast.Constant  constant,
  type_name = None 
)
protected

◆ _parse_diagonal_matrix_constructor()

exahype2.api.dslhype.Parser.Parser._parse_diagonal_matrix_constructor (   self,
ast.Call  constructor 
)
protected

Definition at line 66 of file Parser.py.

References exahype2.api.dslhype.Parser.Parser._parse_expression().

Referenced by exahype2.api.dslhype.Parser.Parser._parse_call().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _parse_diagonal_matrix_vector_product()

exahype2.api.dslhype.Parser.Parser._parse_diagonal_matrix_vector_product (   self,
ast.Call  call 
)
protected

Definition at line 53 of file Parser.py.

References exahype2.api.dslhype.Parser.Parser._parse_expression().

Referenced by exahype2.api.dslhype.Parser.Parser._parse_call().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _parse_expression()

◆ _parse_function()

exahype2.api.dslhype.Parser.Parser._parse_function (   self,
ast.FunctionDef  function,
  template,
  functor_arguments,
  namespaces,
  stateless,
  use_accelerator,
  top_level = False,
  function_name = None 
)
protected

Definition at line 327 of file Parser.py.

References exahype2.api.dslhype.Parser.Parser._parse_statement().

Here is the call graph for this function:

◆ _parse_if()

exahype2.api.dslhype.Parser.Parser._parse_if (   self,
ast.If  statement 
)
protected

Definition at line 291 of file Parser.py.

References exahype2.api.dslhype.Parser.Parser._parse_statement(), assert, and exahype2.api.dslhype.Parser.Parser.inuse_pde_terms.

Referenced by exahype2.api.dslhype.Parser.Parser._parse_statement().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _parse_kronecker_product()

exahype2.api.dslhype.Parser.Parser._parse_kronecker_product (   self,
ast.Call  product 
)
protected

Definition at line 77 of file Parser.py.

References exahype2.api.dslhype.Parser.Parser._parse_expression().

Referenced by exahype2.api.dslhype.Parser.Parser._parse_call().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _parse_matrix_constructor()

exahype2.api.dslhype.Parser.Parser._parse_matrix_constructor (   self,
ast.Call  constructor 
)
protected

Definition at line 71 of file Parser.py.

References exahype2.api.dslhype.Parser.Parser._parse_expression().

Referenced by exahype2.api.dslhype.Parser.Parser._parse_call().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _parse_matrix_vector_product()

exahype2.api.dslhype.Parser.Parser._parse_matrix_vector_product (   self,
ast.Call  call 
)
protected

Definition at line 58 of file Parser.py.

References exahype2.api.dslhype.Parser.Parser._parse_expression().

Referenced by exahype2.api.dslhype.Parser.Parser._parse_call().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _parse_patch_constructor()

exahype2.api.dslhype.Parser.Parser._parse_patch_constructor (   self,
ast.Call  constructor,
  isFace = False 
)
protected

Definition at line 116 of file Parser.py.

References exahype2.api.dslhype.Parser.Parser._parse_constant(), and exahype2.api.dslhype.Parser.Parser._parse_expression().

Referenced by exahype2.api.dslhype.Parser.Parser._parse_call().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _parse_statement()

exahype2.api.dslhype.Parser.Parser._parse_statement (   self,
ast.Expr  statement 
)
protected

◆ _parse_subscript()

exahype2.api.dslhype.Parser.Parser._parse_subscript (   self,
ast.Subscript  subscript 
)
protected

Definition at line 186 of file Parser.py.

References exahype2.api.dslhype.Parser.Parser._parse_expression().

Referenced by exahype2.api.dslhype.Parser.Parser._parse_expression().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _parse_unary_operation()

exahype2.api.dslhype.Parser.Parser._parse_unary_operation (   self,
ast.UnaryOp  unary_operation 
)
protected

Definition at line 157 of file Parser.py.

References exahype2.api.dslhype.Parser.Parser._parse_expression().

Referenced by exahype2.api.dslhype.Parser.Parser._parse_expression().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse()

exahype2.api.dslhype.Parser.Parser.parse (   self,
  function,
  template_arguments,
  functor_arguments,
  inuse_pde_terms,
  namespace = [],
  stateless = False,
  use_accelerator = False,
  mlir_omp = False,
  use_memory_manager = False,
  function_name = None 
)

Field Documentation

◆ inuse_pde_terms

exahype2.api.dslhype.Parser.Parser.inuse_pde_terms

Definition at line 369 of file Parser.py.

Referenced by exahype2.api.dslhype.Parser.Parser._parse_if().


The documentation for this class was generated from the following file: