Abstract Syntax Tree#

exception yaflux._ast.AstSelfMutationError(func_name, mutated)[source]#

Bases: Exception

Raised when self is mutated in a function.

exception yaflux._ast.AstUndeclaredUsageError(func_name, undeclared)[source]#

Bases: Exception

Raised when an undeclared variable is used in the AST.

yaflux._ast.validate_ast(func, requires, mutates)[source]#

Parse a function’s AST and perform validation checks.

Return type:

None