Skip to content

Commit 3b4e471

Browse files
committed
Merge branch 'main' of github.com:IUCompilerCourse/python-student-support-code
2 parents 0b6af24 + 686640f commit 3b4e471

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

utils.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,6 +1481,12 @@ def compile(compiler, compiler_name, type_check_L, type_check_C,
14811481
program = compiler.convert_assignments(program)
14821482
trace_ast_and_concrete(program)
14831483

1484+
if hasattr(compiler, 'limit_functions'):
1485+
trace('\n# limit functions\n')
1486+
type_check_L(program)
1487+
program = compiler.limit_functions(program)
1488+
trace_ast_and_concrete(program)
1489+
14841490
if hasattr(compiler, 'convert_to_closures'):
14851491
trace('\n# closure conversion\n')
14861492
type_check_L(program)

0 commit comments

Comments
 (0)