y5gfunc.expr.utils¶
utils
¶
Functions:
| Name | Description |
|---|---|
is_clip_postfix |
Check if a token string represents a clip. |
is_clip_infix |
Check if a token string represents a clip. |
is_constant_postfix |
Check if the token is a built-in constant. |
is_constant_infix |
Check if the token is a built-in constant |
is_token_numeric |
Check if a token string represents a numeric constant. |
ensure_akarin_clip_name |
Ensure a clip name token is akarin.Expr-style (srcN). |
parse_numeric |
Parse a numeric token string to its actual value (int or float). |
tokenize_expr |
Convert expression string to a list of tokens |
get_stack_effect |
Return net stack delta for a token. |
get_op_arity |
Return number of operands for a token. |
get_used_variable_names |
Extract all variable names used in the expression. |
is_clip_postfix
cached
¶
is_clip_infix
cached
¶
is_constant_postfix
cached
¶
Check if the token is a built-in constant.
Source code in y5gfunc/expr/utils.py
is_constant_infix
cached
¶
is_token_numeric
cached
¶
Check if a token string represents a numeric constant.
Source code in y5gfunc/expr/utils.py
ensure_akarin_clip_name
cached
¶
Ensure a clip name token is akarin.Expr-style (srcN).
Source code in y5gfunc/expr/utils.py
parse_numeric
cached
¶
Parse a numeric token string to its actual value (int or float).
Source code in y5gfunc/expr/utils.py
tokenize_expr
¶
Convert expression string to a list of tokens
Source code in y5gfunc/expr/utils.py
get_stack_effect
cached
¶
Return net stack delta for a token.
Source code in y5gfunc/expr/utils.py
get_op_arity
cached
¶
Return number of operands for a token.
Source code in y5gfunc/expr/utils.py
get_used_variable_names
¶
Extract all variable names used in the expression.