concepts.dm.crow.parsers.crow_parser.gen_term_expr#

gen_term_expr(expr_typename)[source]#

Generate a term expression function. This function is used to generate the term expression functions for the transformer.

It is used to generate the following functions:

  • mul_expr

  • arith_expr

  • shift_expr

Parameters:

expr_typename (str) – the name of the expression type. This is only used for printing the debug information.

Returns:

the generated term expression function.