├── .gitattributes ├── .github └── workflows │ └── pyrefly.yml ├── .gitignore ├── LICENSE ├── Makefile ├── README.md ├── compiler ├── __init__.py ├── astnodes │ ├── __init__.py │ ├── assignstmt.py │ ├── binaryexpr.py │ ├── booleanliteral.py │ ├── callexpr.py │ ├── classdef.py │ ├── classtype.py │ ├── compilererror.py │ ├── declaration.py │ ├── errors.py │ ├── expr.py │ ├── exprstmt.py │ ├── forstmt.py │ ├── funcdef.py │ ├── globaldecl.py │ ├── identifier.py │ ├── ifexpr.py │ ├── ifstmt.py │ ├── indexexpr.py │ ├── integerliteral.py │ ├── listexpr.py │ ├── listtype.py │ ├── literal.py │ ├── memberexpr.py │ ├── methodcallexpr.py │ ├── node.py │ ├── noneliteral.py │ ├── nonlocaldecl.py │ ├── program.py │ ├── returnstmt.py │ ├── stmt.py │ ├── stringliteral.py │ ├── typeannotation.py │ ├── typedvar.py │ ├── unaryexpr.py │ ├── vardef.py │ └── whilestmt.py ├── builder.py ├── cil_backend.py ├── closuretransformer.py ├── closurevisitor.py ├── compiler.py ├── empty_list_typer.py ├── jvm_backend.py ├── llvm_backend.py ├── nestedfunchoister.py ├── parser.py ├── python_backend.py ├── typechecker.py ├── typeeraser.py ├── types │ ├── Types.py │ ├── __init__.py │ ├── classvaluetype.py │ ├── functype.py │ ├── listvaluetype.py │ ├── symboltype.py │ ├── valuetype.py │ └── varinstance.py ├── typesystem.py ├── varcollector.py ├── visitor.py └── wasm_backend.py ├── demo_cil.sh ├── demo_jvm.sh ├── demo_llvm.sh ├── demo_wasm.sh ├── main.py ├── pyrefly.toml ├── requirements-dev.txt ├── requirements.txt ├── test.py ├── tests ├── parse │ ├── bad_annotation.py │ ├── bad_assign_expr1.py │ ├── bad_assign_expr2.py │ ├── bad_decl_location.py │ ├── bad_decl_location2.py │ ├── bad_decl_location3.py │ ├── bad_func_def.py │ ├── bad_indentation.py │ ├── bad_inheritance.py │ ├── bad_inner_class.py │ ├── bad_inner_class2.py │ ├── bad_keywords.py │ ├── bad_literal.py │ ├── bad_missing_annotation.py │ ├── bad_slice.py │ ├── bad_stmt.py │ ├── bad_var_decl.py │ ├── bad_var_decl2.py │ ├── bad_while_else.py │ ├── chained_mixed_assignments.py │ ├── chained_mixed_assignments.py.ast │ ├── chained_var_assignments.py │ ├── chained_var_assignments.py.ast │ ├── class_attr.py │ ├── class_attr.py.ast │ ├── class_attr_get.py │ ├── class_attr_get.py.ast │ ├── class_attr_set.py │ ├── class_attr_set.py.ast │ ├── class_constructor.py │ ├── class_constructor.py.ast │ ├── class_method.py │ ├── class_method.py.ast │ ├── coverage.py │ ├── coverage.py.ast │ ├── def_func.py │ ├── def_func.py.ast │ ├── def_func_args.py │ ├── def_func_args.py.ast │ ├── def_func_global.py │ ├── def_func_global.py.ast │ ├── def_func_nested.py │ ├── def_func_nested.py.ast │ ├── def_func_nonlocal.py │ ├── def_func_nonlocal.py.ast │ ├── expr_if.py │ ├── expr_if.py.ast │ ├── expr_index.py │ ├── expr_index.py.ast │ ├── expr_plus.py │ ├── expr_plus.py.ast │ ├── expr_unary.py │ ├── expr_unary.py.ast │ ├── global.py │ ├── global.py.ast │ ├── literals.py │ ├── literals.py.ast │ ├── stmt_call.py │ ├── stmt_call.py.ast │ ├── stmt_for.py │ ├── stmt_for.py.ast │ ├── stmt_if.py │ ├── stmt_if.py.ast │ ├── stmt_if_elif.py │ ├── stmt_if_elif.py.ast │ ├── stmt_if_elif_else.py │ ├── stmt_if_elif_else.py.ast │ ├── stmt_ifelse.py │ ├── stmt_ifelse.py.ast │ ├── stmt_list_assign.py │ ├── stmt_list_assign.py.ast │ ├── stmt_while.py │ └── stmt_while.py.ast ├── runtime │ ├── assignment.py │ ├── binary_tree.py │ ├── classes.py │ ├── contains.py │ ├── control_flow.py │ ├── control_flow_2.py │ ├── doubling_vector.py │ ├── exponent.py │ ├── expr_stmt.py │ ├── functions.py │ ├── global_loop.py │ ├── globals.py │ ├── hello_world.py │ ├── incrementing_counter.py │ ├── inherit_init.py │ ├── int_and_bool.py │ ├── int_and_bool_control_flow.py │ ├── int_and_bool_funcs.py │ ├── linked_list.py │ ├── lists.py │ ├── local_loop.py │ ├── modulo.py │ ├── nested_list.py │ ├── nonlocal.py │ ├── nonlocal_builtins.py │ ├── nonlocal_loop.py │ ├── null_and_empty_list_compare.py │ ├── operators.py │ ├── ratio.py │ ├── short_circuit.py │ ├── simple_list.py │ ├── simple_string.py │ ├── strings.py │ └── var_decl.py └── typecheck │ ├── ast_coverage.py │ ├── ast_coverage.py.ast │ ├── ast_coverage.py.ast.typed │ ├── bad_assign_expr.py │ ├── bad_assign_expr.py.ast │ ├── bad_assign_expr.py.ast.typed │ ├── bad_class_attr.py │ ├── bad_class_attr.py.ast │ ├── bad_class_attr.py.ast.typed │ ├── bad_class_attr_type.py │ ├── bad_class_attr_type.py.ast │ ├── bad_class_attr_type.py.ast.typed │ ├── bad_class_init_override.py │ ├── bad_class_init_override.py.ast │ ├── bad_class_init_override.py.ast.typed │ ├── bad_class_init_override2.py │ ├── bad_class_init_override2.py.ast │ ├── bad_class_init_override2.py.ast.typed │ ├── bad_class_init_return.py │ ├── bad_class_init_return.py.ast │ ├── bad_class_init_return.py.ast.typed │ ├── bad_class_member_expr.py │ ├── bad_class_member_expr.py.ast │ ├── bad_class_member_expr.py.ast.typed │ ├── bad_class_method.py │ ├── bad_class_method.py.ast │ ├── bad_class_method.py.ast.typed │ ├── bad_class_method_invoke.py │ ├── bad_class_method_invoke.py.ast │ ├── bad_class_method_invoke.py.ast.typed │ ├── bad_class_method_override.py │ ├── bad_class_method_override.py.ast │ ├── bad_class_method_override.py.ast.typed │ ├── bad_class_method_override_attr.py │ ├── bad_class_method_override_attr.py.ast │ ├── bad_class_method_override_attr.py.ast.typed │ ├── bad_class_super.py │ ├── bad_class_super.py.ast │ ├── bad_class_super.py.ast.typed │ ├── bad_concat.py │ ├── bad_concat.py.ast │ ├── bad_concat.py.ast.typed │ ├── bad_duplicate_class.py │ ├── bad_duplicate_class.py.ast │ ├── bad_duplicate_class.py.ast.typed │ ├── bad_duplicate_class_member.py │ ├── bad_duplicate_class_member.py.ast │ ├── bad_duplicate_class_member.py.ast.typed │ ├── bad_duplicate_global.py │ ├── bad_duplicate_global.py.ast │ ├── bad_duplicate_global.py.ast.typed │ ├── bad_duplicate_global_2.py │ ├── bad_duplicate_global_2.py.ast │ ├── bad_duplicate_global_2.py.ast.typed │ ├── bad_duplicate_global_3.py │ ├── bad_duplicate_global_3.py.ast │ ├── bad_duplicate_global_3.py.ast.typed │ ├── bad_duplicate_local.py │ ├── bad_duplicate_local.py.ast │ ├── bad_duplicate_local.py.ast.typed │ ├── bad_expr_binary.py │ ├── bad_expr_binary.py.ast │ ├── bad_expr_binary.py.ast.typed │ ├── bad_expr_if.py │ ├── bad_expr_if.py.ast │ ├── bad_expr_if.py.ast.typed │ ├── bad_expr_unary.py │ ├── bad_expr_unary.py.ast │ ├── bad_expr_unary.py.ast.typed │ ├── bad_func_def_call.py │ ├── bad_func_def_call.py.ast │ ├── bad_func_def_call.py.ast.typed │ ├── bad_func_def_return.py │ ├── bad_func_def_return.py.ast │ ├── bad_func_def_return.py.ast.typed │ ├── bad_list_assign.py │ ├── bad_list_assign.py.ast │ ├── bad_list_assign.py.ast.typed │ ├── bad_list_index.py │ ├── bad_list_index.py.ast │ ├── bad_list_index.py.ast.typed │ ├── bad_local_assign.py │ ├── bad_local_assign.py.ast │ ├── bad_local_assign.py.ast.typed │ ├── bad_none_assign.py │ ├── bad_none_assign.py.ast │ ├── bad_none_assign.py.ast.typed │ ├── bad_nonlocal_global.py │ ├── bad_nonlocal_global.py.ast │ ├── bad_nonlocal_global.py.ast.typed │ ├── bad_return_missing.py │ ├── bad_return_missing.py.ast │ ├── bad_return_missing.py.ast.typed │ ├── bad_return_top.py │ ├── bad_return_top.py.ast │ ├── bad_return_top.py.ast.typed │ ├── bad_shadow_local.py │ ├── bad_shadow_local.py.ast │ ├── bad_shadow_local.py.ast.typed │ ├── bad_shadow_local_2.py │ ├── bad_shadow_local_2.py.ast │ ├── bad_shadow_local_2.py.ast.typed │ ├── bad_strings.py │ ├── bad_strings.py.ast │ ├── bad_strings.py.ast.typed │ ├── bad_type_annotation.py │ ├── bad_type_annotation.py.ast │ ├── bad_type_annotation.py.ast.typed │ ├── bad_type_id.py │ ├── bad_type_id.py.ast │ ├── bad_type_id.py.ast.typed │ ├── bad_var_assign.py │ ├── bad_var_assign.py.ast │ ├── bad_var_assign.py.ast.typed │ ├── call.py │ ├── call.py.ast.typed │ ├── call_with_args.py │ ├── call_with_args.py.ast.typed │ ├── class_def_assign.py │ ├── class_def_assign.py.ast │ ├── class_def_assign.py.ast.typed │ ├── class_def_attr.py │ ├── class_def_attr.py.ast │ ├── class_def_attr.py.ast.typed │ ├── class_def_init.py │ ├── class_def_init.py.ast │ ├── class_def_init.py.ast.typed │ ├── class_def_methods.py │ ├── class_def_methods.py.ast │ ├── class_def_methods.py.ast.typed │ ├── decl_global_forward.py │ ├── decl_global_forward.py.ast │ ├── decl_global_forward.py.ast.typed │ ├── decl_nonlocal_forward.py │ ├── decl_nonlocal_forward.py.ast │ ├── decl_nonlocal_forward.py.ast.typed │ ├── error_div_zero.py │ ├── error_div_zero.py.ast.typed │ ├── error_invalid_print.py │ ├── error_invalid_print.py.ast.typed │ ├── error_mod_zero.py │ ├── error_mod_zero.py.ast.typed │ ├── example_classes.py │ ├── example_classes.py.ast │ ├── example_classes.py.ast.typed │ ├── example_contains.py │ ├── example_contains.py.ast │ ├── example_contains.py.ast.typed │ ├── example_counter.py │ ├── example_counter.py.ast │ ├── example_counter.py.ast.typed │ ├── example_exp.py │ ├── example_exp.py.ast │ ├── example_exp.py.ast.typed │ ├── example_linked_list.py │ ├── example_linked_list.py.ast │ ├── example_linked_list.py.ast.typed │ ├── example_rat.py │ ├── example_rat.py.ast │ ├── example_rat.py.ast.typed │ ├── example_sieve.py │ ├── example_sieve.py.ast.typed │ ├── example_tree.py │ ├── example_tree.py.ast.typed │ ├── exp.py │ ├── exp.py.ast.typed │ ├── expr_binary.py │ ├── expr_binary.py.ast │ ├── expr_binary.py.ast.typed │ ├── expr_concat.py │ ├── expr_concat.py.ast │ ├── expr_concat.py.ast.typed │ ├── expr_id.py │ ├── expr_id.py.ast │ ├── expr_id.py.ast.typed │ ├── expr_if.py │ ├── expr_if.py.ast │ ├── expr_if.py.ast.typed │ ├── expr_int.py │ ├── expr_int.py.ast │ ├── expr_int.py.ast.typed │ ├── expr_list_index.py │ ├── expr_list_index.py.ast │ ├── expr_list_index.py.ast.typed │ ├── expr_lists.py │ ├── expr_lists.py.ast │ ├── expr_lists.py.ast.typed │ ├── expr_unary.py │ ├── expr_unary.py.ast │ ├── expr_unary.py.ast.typed │ ├── expr_var_assign.py │ ├── expr_var_assign.py.ast │ ├── expr_var_assign.py.ast.typed │ ├── func_def_call.py │ ├── func_def_call.py.ast │ ├── func_def_call.py.ast.typed │ ├── id_global.py │ ├── id_global.py.ast.typed │ ├── id_local.py │ ├── id_local.py.ast.typed │ ├── len_invalid_1.py │ ├── len_invalid_1.py.ast.typed │ ├── len_invalid_2.py │ ├── len_invalid_2.py.ast.typed │ ├── list_concat.py │ ├── list_concat.py.ast.typed │ ├── list_concat_2.py │ ├── list_concat_2.py.ast.typed │ ├── list_concat_none.py │ ├── list_concat_none.py.ast.typed │ ├── list_get_element.py │ ├── list_get_element.py.ast.typed │ ├── list_get_element_complex.py │ ├── list_get_element_complex.py.ast.typed │ ├── list_get_element_none.py │ ├── list_get_element_none.py.ast.typed │ ├── list_get_element_oob_1.py │ ├── list_get_element_oob_1.py.ast.typed │ ├── list_get_element_oob_2.py │ ├── list_get_element_oob_2.py.ast.typed │ ├── list_get_element_oob_3.py │ ├── list_get_element_oob_3.py.ast.typed │ ├── list_len.py │ ├── list_len.py.ast.typed │ ├── list_len_empty.py │ ├── list_len_empty.py.ast.typed │ ├── list_set_element.py │ ├── list_set_element.py.ast.typed │ ├── list_set_element_none.py │ ├── list_set_element_none.py.ast.typed │ ├── list_set_element_oob_1.py │ ├── list_set_element_oob_1.py.ast.typed │ ├── list_set_element_oob_2.py │ ├── list_set_element_oob_2.py.ast.typed │ ├── list_set_element_oob_3.py │ ├── list_set_element_oob_3.py.ast.typed │ ├── literal_bool.py │ ├── literal_bool.py.ast.typed │ ├── literal_int.py │ ├── literal_int.py.ast.typed │ ├── literal_str.py │ ├── literal_str.py.ast.typed │ ├── nested.py │ ├── nested.py.ast.typed │ ├── nested2.py │ ├── nested2.py.ast.typed │ ├── object_attr_get.py │ ├── object_attr_get.py.ast.typed │ ├── object_attr_get_none.py │ ├── object_attr_get_none.py.ast.typed │ ├── object_attr_set.py │ ├── object_attr_set.py.ast.typed │ ├── object_attr_set_eval_order.py │ ├── object_attr_set_eval_order.py.ast.typed │ ├── object_attr_set_none.py │ ├── object_attr_set_none.py.ast.typed │ ├── object_init.py │ ├── object_init.py.ast.typed │ ├── object_method.py │ ├── object_method.py.ast.typed │ ├── object_method_complex_call.py │ ├── object_method_complex_call.py.ast.typed │ ├── object_method_nested.py │ ├── object_method_nested.py.ast.typed │ ├── object_method_none.py │ ├── object_method_none.py.ast.typed │ ├── object_method_override.py │ ├── object_method_override.py.ast.typed │ ├── op_add.py │ ├── op_add.py.ast.typed │ ├── op_cmp_bool.py │ ├── op_cmp_bool.py.ast.typed │ ├── op_cmp_int.py │ ├── op_cmp_int.py.ast.typed │ ├── op_div_mod.py │ ├── op_div_mod.py.ast.typed │ ├── op_is.py │ ├── op_is.py.ast.typed │ ├── op_logical.py │ ├── op_logical.py.ast.typed │ ├── op_mul.py │ ├── op_mul.py.ast.typed │ ├── op_negate.py │ ├── op_negate.py.ast.typed │ ├── op_sub.py │ ├── op_sub.py.ast.typed │ ├── pass.py │ ├── pass.py.ast.typed │ ├── predef_constructors.py │ ├── predef_constructors.py.ast.typed │ ├── prime.py │ ├── prime.py.ast.typed │ ├── stdlib.py │ ├── stdlib.py.ast.typed │ ├── stmt_for_list.py │ ├── stmt_for_list.py.ast.typed │ ├── stmt_for_list_empty.py │ ├── stmt_for_list_empty.py.ast.typed │ ├── stmt_for_list_eval.py │ ├── stmt_for_list_eval.py.ast.typed │ ├── stmt_for_list_modify.py │ ├── stmt_for_list_modify.py.ast.typed │ ├── stmt_for_list_nested.py │ ├── stmt_for_list_nested.py.ast.typed │ ├── stmt_for_list_nested_same_var.py │ ├── stmt_for_list_nested_same_var.py.ast.typed │ ├── stmt_for_list_none.py │ ├── stmt_for_list_none.py.ast.typed │ ├── stmt_for_list_nonlocal.py │ ├── stmt_for_list_nonlocal.py.ast.typed │ ├── stmt_for_list_return.py │ ├── stmt_for_list_return.py.ast.typed │ ├── stmt_for_lists.py │ ├── stmt_for_lists.py.ast │ ├── stmt_for_lists.py.ast.typed │ ├── stmt_for_str.py │ ├── stmt_for_str.py.ast.typed │ ├── stmt_for_str_empty.py │ ├── stmt_for_str_empty.py.ast.typed │ ├── stmt_for_str_eval.py │ ├── stmt_for_str_eval.py.ast.typed │ ├── stmt_for_str_nested.py │ ├── stmt_for_str_nested.py.ast.typed │ ├── stmt_for_str_same_var.py │ ├── stmt_for_str_same_var.py.ast.typed │ ├── stmt_for_strings.py │ ├── stmt_for_strings.py.ast │ ├── stmt_for_strings.py.ast.typed │ ├── stmt_if.py │ ├── stmt_if.py.ast │ ├── stmt_if.py.ast.typed │ ├── stmt_list_assign.py │ ├── stmt_list_assign.py.ast │ ├── stmt_list_assign.py.ast.typed │ ├── stmt_return_early.py │ ├── stmt_return_early.py.ast.typed │ ├── stmt_var_assign.py │ ├── stmt_var_assign.py.ast │ ├── stmt_var_assign.py.ast.typed │ ├── stmt_while.py │ ├── stmt_while.py.ast │ ├── stmt_while.py.ast.typed │ ├── str_cat.py │ ├── str_cat.py.ast.typed │ ├── str_cat_2.py │ ├── str_cat_2.py.ast.typed │ ├── str_cmp.py │ ├── str_cmp.py.ast.typed │ ├── str_get_element.py │ ├── str_get_element.py.ast.typed │ ├── str_get_element_oob_1.py │ ├── str_get_element_oob_1.py.ast.typed │ ├── str_get_element_oob_2.py │ ├── str_get_element_oob_2.py.ast.typed │ ├── str_get_element_oob_3.py │ ├── str_get_element_oob_3.py.ast.typed │ ├── str_len.py │ ├── str_len.py.ast.typed │ ├── strings.py │ ├── strings.py.ast │ ├── strings.py.ast.typed │ ├── var_assign.py │ └── var_assign.py.ast.typed └── wasm.js /.gitattributes: -------------------------------------------------------------------------------- 1 | test/* linguist-generated -------------------------------------------------------------------------------- /.github/workflows/pyrefly.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/.github/workflows/pyrefly.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/README.md -------------------------------------------------------------------------------- /compiler/__init__.py: -------------------------------------------------------------------------------- 1 | pass 2 | -------------------------------------------------------------------------------- /compiler/astnodes/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/__init__.py -------------------------------------------------------------------------------- /compiler/astnodes/assignstmt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/assignstmt.py -------------------------------------------------------------------------------- /compiler/astnodes/binaryexpr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/binaryexpr.py -------------------------------------------------------------------------------- /compiler/astnodes/booleanliteral.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/booleanliteral.py -------------------------------------------------------------------------------- /compiler/astnodes/callexpr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/callexpr.py -------------------------------------------------------------------------------- /compiler/astnodes/classdef.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/classdef.py -------------------------------------------------------------------------------- /compiler/astnodes/classtype.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/classtype.py -------------------------------------------------------------------------------- /compiler/astnodes/compilererror.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/compilererror.py -------------------------------------------------------------------------------- /compiler/astnodes/declaration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/declaration.py -------------------------------------------------------------------------------- /compiler/astnodes/errors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/errors.py -------------------------------------------------------------------------------- /compiler/astnodes/expr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/expr.py -------------------------------------------------------------------------------- /compiler/astnodes/exprstmt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/exprstmt.py -------------------------------------------------------------------------------- /compiler/astnodes/forstmt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/forstmt.py -------------------------------------------------------------------------------- /compiler/astnodes/funcdef.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/funcdef.py -------------------------------------------------------------------------------- /compiler/astnodes/globaldecl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/globaldecl.py -------------------------------------------------------------------------------- /compiler/astnodes/identifier.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/identifier.py -------------------------------------------------------------------------------- /compiler/astnodes/ifexpr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/ifexpr.py -------------------------------------------------------------------------------- /compiler/astnodes/ifstmt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/ifstmt.py -------------------------------------------------------------------------------- /compiler/astnodes/indexexpr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/indexexpr.py -------------------------------------------------------------------------------- /compiler/astnodes/integerliteral.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/integerliteral.py -------------------------------------------------------------------------------- /compiler/astnodes/listexpr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/listexpr.py -------------------------------------------------------------------------------- /compiler/astnodes/listtype.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/listtype.py -------------------------------------------------------------------------------- /compiler/astnodes/literal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/literal.py -------------------------------------------------------------------------------- /compiler/astnodes/memberexpr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/memberexpr.py -------------------------------------------------------------------------------- /compiler/astnodes/methodcallexpr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/methodcallexpr.py -------------------------------------------------------------------------------- /compiler/astnodes/node.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/node.py -------------------------------------------------------------------------------- /compiler/astnodes/noneliteral.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/noneliteral.py -------------------------------------------------------------------------------- /compiler/astnodes/nonlocaldecl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/nonlocaldecl.py -------------------------------------------------------------------------------- /compiler/astnodes/program.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/program.py -------------------------------------------------------------------------------- /compiler/astnodes/returnstmt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/returnstmt.py -------------------------------------------------------------------------------- /compiler/astnodes/stmt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/stmt.py -------------------------------------------------------------------------------- /compiler/astnodes/stringliteral.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/stringliteral.py -------------------------------------------------------------------------------- /compiler/astnodes/typeannotation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/typeannotation.py -------------------------------------------------------------------------------- /compiler/astnodes/typedvar.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/typedvar.py -------------------------------------------------------------------------------- /compiler/astnodes/unaryexpr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/unaryexpr.py -------------------------------------------------------------------------------- /compiler/astnodes/vardef.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/vardef.py -------------------------------------------------------------------------------- /compiler/astnodes/whilestmt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/astnodes/whilestmt.py -------------------------------------------------------------------------------- /compiler/builder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/builder.py -------------------------------------------------------------------------------- /compiler/cil_backend.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/cil_backend.py -------------------------------------------------------------------------------- /compiler/closuretransformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/closuretransformer.py -------------------------------------------------------------------------------- /compiler/closurevisitor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/closurevisitor.py -------------------------------------------------------------------------------- /compiler/compiler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/compiler.py -------------------------------------------------------------------------------- /compiler/empty_list_typer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/empty_list_typer.py -------------------------------------------------------------------------------- /compiler/jvm_backend.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/jvm_backend.py -------------------------------------------------------------------------------- /compiler/llvm_backend.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/llvm_backend.py -------------------------------------------------------------------------------- /compiler/nestedfunchoister.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/nestedfunchoister.py -------------------------------------------------------------------------------- /compiler/parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/parser.py -------------------------------------------------------------------------------- /compiler/python_backend.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/python_backend.py -------------------------------------------------------------------------------- /compiler/typechecker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/typechecker.py -------------------------------------------------------------------------------- /compiler/typeeraser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/typeeraser.py -------------------------------------------------------------------------------- /compiler/types/Types.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/types/Types.py -------------------------------------------------------------------------------- /compiler/types/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/types/__init__.py -------------------------------------------------------------------------------- /compiler/types/classvaluetype.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/types/classvaluetype.py -------------------------------------------------------------------------------- /compiler/types/functype.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/types/functype.py -------------------------------------------------------------------------------- /compiler/types/listvaluetype.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/types/listvaluetype.py -------------------------------------------------------------------------------- /compiler/types/symboltype.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/types/symboltype.py -------------------------------------------------------------------------------- /compiler/types/valuetype.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/types/valuetype.py -------------------------------------------------------------------------------- /compiler/types/varinstance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/types/varinstance.py -------------------------------------------------------------------------------- /compiler/typesystem.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/typesystem.py -------------------------------------------------------------------------------- /compiler/varcollector.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/varcollector.py -------------------------------------------------------------------------------- /compiler/visitor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/visitor.py -------------------------------------------------------------------------------- /compiler/wasm_backend.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/compiler/wasm_backend.py -------------------------------------------------------------------------------- /demo_cil.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/demo_cil.sh -------------------------------------------------------------------------------- /demo_jvm.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/demo_jvm.sh -------------------------------------------------------------------------------- /demo_llvm.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/demo_llvm.sh -------------------------------------------------------------------------------- /demo_wasm.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/demo_wasm.sh -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/main.py -------------------------------------------------------------------------------- /pyrefly.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/pyrefly.toml -------------------------------------------------------------------------------- /requirements-dev.txt: -------------------------------------------------------------------------------- 1 | -r requirements.txt 2 | pyrefly 3 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | llvmlite 2 | -------------------------------------------------------------------------------- /test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/test.py -------------------------------------------------------------------------------- /tests/parse/bad_annotation.py: -------------------------------------------------------------------------------- 1 | x:[int, int] = 2 -------------------------------------------------------------------------------- /tests/parse/bad_assign_expr1.py: -------------------------------------------------------------------------------- 1 | x = (y = 2) 2 | -------------------------------------------------------------------------------- /tests/parse/bad_assign_expr2.py: -------------------------------------------------------------------------------- 1 | print(x = 1) 2 | -------------------------------------------------------------------------------- /tests/parse/bad_decl_location.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/bad_decl_location.py -------------------------------------------------------------------------------- /tests/parse/bad_decl_location2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/bad_decl_location2.py -------------------------------------------------------------------------------- /tests/parse/bad_decl_location3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/bad_decl_location3.py -------------------------------------------------------------------------------- /tests/parse/bad_func_def.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/bad_func_def.py -------------------------------------------------------------------------------- /tests/parse/bad_indentation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/bad_indentation.py -------------------------------------------------------------------------------- /tests/parse/bad_inheritance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/bad_inheritance.py -------------------------------------------------------------------------------- /tests/parse/bad_inner_class.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/bad_inner_class.py -------------------------------------------------------------------------------- /tests/parse/bad_inner_class2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/bad_inner_class2.py -------------------------------------------------------------------------------- /tests/parse/bad_keywords.py: -------------------------------------------------------------------------------- 1 | x:int = 5 2 | x = f(arg=x) -------------------------------------------------------------------------------- /tests/parse/bad_literal.py: -------------------------------------------------------------------------------- 1 | x:float = 5.55 -------------------------------------------------------------------------------- /tests/parse/bad_missing_annotation.py: -------------------------------------------------------------------------------- 1 | def f(x)->int: 2 | return x -------------------------------------------------------------------------------- /tests/parse/bad_slice.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/bad_slice.py -------------------------------------------------------------------------------- /tests/parse/bad_stmt.py: -------------------------------------------------------------------------------- 1 | 1 + 2 2 | 3 == 4 or (not False && True) 3 | 5 + 6 4 | 7 << 8 5 | -------------------------------------------------------------------------------- /tests/parse/bad_var_decl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/bad_var_decl.py -------------------------------------------------------------------------------- /tests/parse/bad_var_decl2.py: -------------------------------------------------------------------------------- 1 | x:int 2 | -------------------------------------------------------------------------------- /tests/parse/bad_while_else.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/bad_while_else.py -------------------------------------------------------------------------------- /tests/parse/chained_mixed_assignments.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/chained_mixed_assignments.py -------------------------------------------------------------------------------- /tests/parse/chained_mixed_assignments.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/chained_mixed_assignments.py.ast -------------------------------------------------------------------------------- /tests/parse/chained_var_assignments.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/chained_var_assignments.py -------------------------------------------------------------------------------- /tests/parse/chained_var_assignments.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/chained_var_assignments.py.ast -------------------------------------------------------------------------------- /tests/parse/class_attr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/class_attr.py -------------------------------------------------------------------------------- /tests/parse/class_attr.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/class_attr.py.ast -------------------------------------------------------------------------------- /tests/parse/class_attr_get.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/class_attr_get.py -------------------------------------------------------------------------------- /tests/parse/class_attr_get.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/class_attr_get.py.ast -------------------------------------------------------------------------------- /tests/parse/class_attr_set.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/class_attr_set.py -------------------------------------------------------------------------------- /tests/parse/class_attr_set.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/class_attr_set.py.ast -------------------------------------------------------------------------------- /tests/parse/class_constructor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/class_constructor.py -------------------------------------------------------------------------------- /tests/parse/class_constructor.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/class_constructor.py.ast -------------------------------------------------------------------------------- /tests/parse/class_method.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/class_method.py -------------------------------------------------------------------------------- /tests/parse/class_method.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/class_method.py.ast -------------------------------------------------------------------------------- /tests/parse/coverage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/coverage.py -------------------------------------------------------------------------------- /tests/parse/coverage.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/coverage.py.ast -------------------------------------------------------------------------------- /tests/parse/def_func.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/def_func.py -------------------------------------------------------------------------------- /tests/parse/def_func.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/def_func.py.ast -------------------------------------------------------------------------------- /tests/parse/def_func_args.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/def_func_args.py -------------------------------------------------------------------------------- /tests/parse/def_func_args.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/def_func_args.py.ast -------------------------------------------------------------------------------- /tests/parse/def_func_global.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/def_func_global.py -------------------------------------------------------------------------------- /tests/parse/def_func_global.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/def_func_global.py.ast -------------------------------------------------------------------------------- /tests/parse/def_func_nested.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/def_func_nested.py -------------------------------------------------------------------------------- /tests/parse/def_func_nested.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/def_func_nested.py.ast -------------------------------------------------------------------------------- /tests/parse/def_func_nonlocal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/def_func_nonlocal.py -------------------------------------------------------------------------------- /tests/parse/def_func_nonlocal.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/def_func_nonlocal.py.ast -------------------------------------------------------------------------------- /tests/parse/expr_if.py: -------------------------------------------------------------------------------- 1 | 3 if 1 > 2 else 4 2 | -------------------------------------------------------------------------------- /tests/parse/expr_if.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/expr_if.py.ast -------------------------------------------------------------------------------- /tests/parse/expr_index.py: -------------------------------------------------------------------------------- 1 | a + b[i][j] 2 | -------------------------------------------------------------------------------- /tests/parse/expr_index.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/expr_index.py.ast -------------------------------------------------------------------------------- /tests/parse/expr_plus.py: -------------------------------------------------------------------------------- 1 | 1 + 2 + 3 2 | -------------------------------------------------------------------------------- /tests/parse/expr_plus.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/expr_plus.py.ast -------------------------------------------------------------------------------- /tests/parse/expr_unary.py: -------------------------------------------------------------------------------- 1 | -1 2 | -------------------------------------------------------------------------------- /tests/parse/expr_unary.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/expr_unary.py.ast -------------------------------------------------------------------------------- /tests/parse/global.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/global.py -------------------------------------------------------------------------------- /tests/parse/global.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/global.py.ast -------------------------------------------------------------------------------- /tests/parse/literals.py: -------------------------------------------------------------------------------- 1 | True 2 | False 3 | 1 4 | None 5 | "This is a string" 6 | [1, 2, 3] 7 | 8 | -------------------------------------------------------------------------------- /tests/parse/literals.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/literals.py.ast -------------------------------------------------------------------------------- /tests/parse/stmt_call.py: -------------------------------------------------------------------------------- 1 | print(1) 2 | -------------------------------------------------------------------------------- /tests/parse/stmt_call.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/stmt_call.py.ast -------------------------------------------------------------------------------- /tests/parse/stmt_for.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/stmt_for.py -------------------------------------------------------------------------------- /tests/parse/stmt_for.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/stmt_for.py.ast -------------------------------------------------------------------------------- /tests/parse/stmt_if.py: -------------------------------------------------------------------------------- 1 | if True: 2 | False 3 | 4 | -------------------------------------------------------------------------------- /tests/parse/stmt_if.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/stmt_if.py.ast -------------------------------------------------------------------------------- /tests/parse/stmt_if_elif.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/stmt_if_elif.py -------------------------------------------------------------------------------- /tests/parse/stmt_if_elif.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/stmt_if_elif.py.ast -------------------------------------------------------------------------------- /tests/parse/stmt_if_elif_else.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/stmt_if_elif_else.py -------------------------------------------------------------------------------- /tests/parse/stmt_if_elif_else.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/stmt_if_elif_else.py.ast -------------------------------------------------------------------------------- /tests/parse/stmt_ifelse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/stmt_ifelse.py -------------------------------------------------------------------------------- /tests/parse/stmt_ifelse.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/stmt_ifelse.py.ast -------------------------------------------------------------------------------- /tests/parse/stmt_list_assign.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/stmt_list_assign.py -------------------------------------------------------------------------------- /tests/parse/stmt_list_assign.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/stmt_list_assign.py.ast -------------------------------------------------------------------------------- /tests/parse/stmt_while.py: -------------------------------------------------------------------------------- 1 | while True: 2 | pass 3 | 4 | -------------------------------------------------------------------------------- /tests/parse/stmt_while.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/parse/stmt_while.py.ast -------------------------------------------------------------------------------- /tests/runtime/assignment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/assignment.py -------------------------------------------------------------------------------- /tests/runtime/binary_tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/binary_tree.py -------------------------------------------------------------------------------- /tests/runtime/classes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/classes.py -------------------------------------------------------------------------------- /tests/runtime/contains.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/contains.py -------------------------------------------------------------------------------- /tests/runtime/control_flow.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/control_flow.py -------------------------------------------------------------------------------- /tests/runtime/control_flow_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/control_flow_2.py -------------------------------------------------------------------------------- /tests/runtime/doubling_vector.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/doubling_vector.py -------------------------------------------------------------------------------- /tests/runtime/exponent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/exponent.py -------------------------------------------------------------------------------- /tests/runtime/expr_stmt.py: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | None 4 | "123" 5 | False 6 | -------------------------------------------------------------------------------- /tests/runtime/functions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/functions.py -------------------------------------------------------------------------------- /tests/runtime/global_loop.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/global_loop.py -------------------------------------------------------------------------------- /tests/runtime/globals.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/globals.py -------------------------------------------------------------------------------- /tests/runtime/hello_world.py: -------------------------------------------------------------------------------- 1 | print("hello, world!") 2 | -------------------------------------------------------------------------------- /tests/runtime/incrementing_counter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/incrementing_counter.py -------------------------------------------------------------------------------- /tests/runtime/inherit_init.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/inherit_init.py -------------------------------------------------------------------------------- /tests/runtime/int_and_bool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/int_and_bool.py -------------------------------------------------------------------------------- /tests/runtime/int_and_bool_control_flow.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/int_and_bool_control_flow.py -------------------------------------------------------------------------------- /tests/runtime/int_and_bool_funcs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/int_and_bool_funcs.py -------------------------------------------------------------------------------- /tests/runtime/linked_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/linked_list.py -------------------------------------------------------------------------------- /tests/runtime/lists.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/lists.py -------------------------------------------------------------------------------- /tests/runtime/local_loop.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/local_loop.py -------------------------------------------------------------------------------- /tests/runtime/modulo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/modulo.py -------------------------------------------------------------------------------- /tests/runtime/nested_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/nested_list.py -------------------------------------------------------------------------------- /tests/runtime/nonlocal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/nonlocal.py -------------------------------------------------------------------------------- /tests/runtime/nonlocal_builtins.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/nonlocal_builtins.py -------------------------------------------------------------------------------- /tests/runtime/nonlocal_loop.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/nonlocal_loop.py -------------------------------------------------------------------------------- /tests/runtime/null_and_empty_list_compare.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/null_and_empty_list_compare.py -------------------------------------------------------------------------------- /tests/runtime/operators.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/operators.py -------------------------------------------------------------------------------- /tests/runtime/ratio.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/ratio.py -------------------------------------------------------------------------------- /tests/runtime/short_circuit.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/short_circuit.py -------------------------------------------------------------------------------- /tests/runtime/simple_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/simple_list.py -------------------------------------------------------------------------------- /tests/runtime/simple_string.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/simple_string.py -------------------------------------------------------------------------------- /tests/runtime/strings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/strings.py -------------------------------------------------------------------------------- /tests/runtime/var_decl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/runtime/var_decl.py -------------------------------------------------------------------------------- /tests/typecheck/ast_coverage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/ast_coverage.py -------------------------------------------------------------------------------- /tests/typecheck/ast_coverage.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/ast_coverage.py.ast -------------------------------------------------------------------------------- /tests/typecheck/ast_coverage.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/ast_coverage.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_assign_expr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_assign_expr.py -------------------------------------------------------------------------------- /tests/typecheck/bad_assign_expr.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_assign_expr.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_assign_expr.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_assign_expr.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_class_attr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_attr.py -------------------------------------------------------------------------------- /tests/typecheck/bad_class_attr.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_attr.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_class_attr.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_attr.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_class_attr_type.py: -------------------------------------------------------------------------------- 1 | class A(object): 2 | x:int = True 3 | 4 | A() 5 | -------------------------------------------------------------------------------- /tests/typecheck/bad_class_attr_type.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_attr_type.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_class_attr_type.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_attr_type.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_class_init_override.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_init_override.py -------------------------------------------------------------------------------- /tests/typecheck/bad_class_init_override.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_init_override.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_class_init_override.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_init_override.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_class_init_override2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_init_override2.py -------------------------------------------------------------------------------- /tests/typecheck/bad_class_init_override2.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_init_override2.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_class_init_override2.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_init_override2.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_class_init_return.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_init_return.py -------------------------------------------------------------------------------- /tests/typecheck/bad_class_init_return.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_init_return.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_class_init_return.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_init_return.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_class_member_expr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_member_expr.py -------------------------------------------------------------------------------- /tests/typecheck/bad_class_member_expr.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_member_expr.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_class_member_expr.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_member_expr.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_class_method.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_method.py -------------------------------------------------------------------------------- /tests/typecheck/bad_class_method.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_method.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_class_method.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_method.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_class_method_invoke.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_method_invoke.py -------------------------------------------------------------------------------- /tests/typecheck/bad_class_method_invoke.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_method_invoke.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_class_method_invoke.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_method_invoke.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_class_method_override.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_method_override.py -------------------------------------------------------------------------------- /tests/typecheck/bad_class_method_override.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_method_override.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_class_method_override.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_method_override.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_class_method_override_attr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_method_override_attr.py -------------------------------------------------------------------------------- /tests/typecheck/bad_class_method_override_attr.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_method_override_attr.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_class_method_override_attr.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_method_override_attr.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_class_super.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_super.py -------------------------------------------------------------------------------- /tests/typecheck/bad_class_super.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_super.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_class_super.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_class_super.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_concat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_concat.py -------------------------------------------------------------------------------- /tests/typecheck/bad_concat.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_concat.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_concat.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_concat.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_duplicate_class.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_duplicate_class.py -------------------------------------------------------------------------------- /tests/typecheck/bad_duplicate_class.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_duplicate_class.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_duplicate_class.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_duplicate_class.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_duplicate_class_member.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_duplicate_class_member.py -------------------------------------------------------------------------------- /tests/typecheck/bad_duplicate_class_member.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_duplicate_class_member.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_duplicate_class_member.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_duplicate_class_member.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_duplicate_global.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_duplicate_global.py -------------------------------------------------------------------------------- /tests/typecheck/bad_duplicate_global.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_duplicate_global.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_duplicate_global.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_duplicate_global.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_duplicate_global_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_duplicate_global_2.py -------------------------------------------------------------------------------- /tests/typecheck/bad_duplicate_global_2.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_duplicate_global_2.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_duplicate_global_2.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_duplicate_global_2.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_duplicate_global_3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_duplicate_global_3.py -------------------------------------------------------------------------------- /tests/typecheck/bad_duplicate_global_3.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_duplicate_global_3.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_duplicate_global_3.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_duplicate_global_3.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_duplicate_local.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_duplicate_local.py -------------------------------------------------------------------------------- /tests/typecheck/bad_duplicate_local.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_duplicate_local.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_duplicate_local.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_duplicate_local.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_expr_binary.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_expr_binary.py -------------------------------------------------------------------------------- /tests/typecheck/bad_expr_binary.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_expr_binary.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_expr_binary.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_expr_binary.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_expr_if.py: -------------------------------------------------------------------------------- 1 | x: int = 0 2 | x = "Hello" if 2 > 3 else 3 3 | -------------------------------------------------------------------------------- /tests/typecheck/bad_expr_if.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_expr_if.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_expr_if.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_expr_if.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_expr_unary.py: -------------------------------------------------------------------------------- 1 | not "Bad" 2 | -True 3 | -None 4 | not [] 5 | -------------------------------------------------------------------------------- /tests/typecheck/bad_expr_unary.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_expr_unary.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_expr_unary.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_expr_unary.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_func_def_call.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_func_def_call.py -------------------------------------------------------------------------------- /tests/typecheck/bad_func_def_call.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_func_def_call.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_func_def_call.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_func_def_call.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_func_def_return.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_func_def_return.py -------------------------------------------------------------------------------- /tests/typecheck/bad_func_def_return.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_func_def_return.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_func_def_return.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_func_def_return.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_list_assign.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_list_assign.py -------------------------------------------------------------------------------- /tests/typecheck/bad_list_assign.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_list_assign.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_list_assign.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_list_assign.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_list_index.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_list_index.py -------------------------------------------------------------------------------- /tests/typecheck/bad_list_index.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_list_index.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_list_index.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_list_index.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_local_assign.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_local_assign.py -------------------------------------------------------------------------------- /tests/typecheck/bad_local_assign.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_local_assign.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_local_assign.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_local_assign.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_none_assign.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_none_assign.py -------------------------------------------------------------------------------- /tests/typecheck/bad_none_assign.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_none_assign.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_none_assign.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_none_assign.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_nonlocal_global.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_nonlocal_global.py -------------------------------------------------------------------------------- /tests/typecheck/bad_nonlocal_global.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_nonlocal_global.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_nonlocal_global.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_nonlocal_global.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_return_missing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_return_missing.py -------------------------------------------------------------------------------- /tests/typecheck/bad_return_missing.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_return_missing.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_return_missing.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_return_missing.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_return_top.py: -------------------------------------------------------------------------------- 1 | x:int = 0 2 | 3 | return x 4 | -------------------------------------------------------------------------------- /tests/typecheck/bad_return_top.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_return_top.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_return_top.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_return_top.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_shadow_local.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_shadow_local.py -------------------------------------------------------------------------------- /tests/typecheck/bad_shadow_local.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_shadow_local.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_shadow_local.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_shadow_local.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_shadow_local_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_shadow_local_2.py -------------------------------------------------------------------------------- /tests/typecheck/bad_shadow_local_2.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_shadow_local_2.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_shadow_local_2.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_shadow_local_2.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_strings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_strings.py -------------------------------------------------------------------------------- /tests/typecheck/bad_strings.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_strings.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_strings.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_strings.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_type_annotation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_type_annotation.py -------------------------------------------------------------------------------- /tests/typecheck/bad_type_annotation.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_type_annotation.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_type_annotation.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_type_annotation.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_type_id.py: -------------------------------------------------------------------------------- 1 | x - 1 2 | -------------------------------------------------------------------------------- /tests/typecheck/bad_type_id.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_type_id.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_type_id.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_type_id.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/bad_var_assign.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_var_assign.py -------------------------------------------------------------------------------- /tests/typecheck/bad_var_assign.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_var_assign.py.ast -------------------------------------------------------------------------------- /tests/typecheck/bad_var_assign.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/bad_var_assign.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/call.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/call.py -------------------------------------------------------------------------------- /tests/typecheck/call.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/call.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/call_with_args.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/call_with_args.py -------------------------------------------------------------------------------- /tests/typecheck/call_with_args.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/call_with_args.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/class_def_assign.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/class_def_assign.py -------------------------------------------------------------------------------- /tests/typecheck/class_def_assign.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/class_def_assign.py.ast -------------------------------------------------------------------------------- /tests/typecheck/class_def_assign.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/class_def_assign.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/class_def_attr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/class_def_attr.py -------------------------------------------------------------------------------- /tests/typecheck/class_def_attr.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/class_def_attr.py.ast -------------------------------------------------------------------------------- /tests/typecheck/class_def_attr.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/class_def_attr.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/class_def_init.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/class_def_init.py -------------------------------------------------------------------------------- /tests/typecheck/class_def_init.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/class_def_init.py.ast -------------------------------------------------------------------------------- /tests/typecheck/class_def_init.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/class_def_init.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/class_def_methods.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/class_def_methods.py -------------------------------------------------------------------------------- /tests/typecheck/class_def_methods.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/class_def_methods.py.ast -------------------------------------------------------------------------------- /tests/typecheck/class_def_methods.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/class_def_methods.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/decl_global_forward.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/decl_global_forward.py -------------------------------------------------------------------------------- /tests/typecheck/decl_global_forward.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/decl_global_forward.py.ast -------------------------------------------------------------------------------- /tests/typecheck/decl_global_forward.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/decl_global_forward.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/decl_nonlocal_forward.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/decl_nonlocal_forward.py -------------------------------------------------------------------------------- /tests/typecheck/decl_nonlocal_forward.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/decl_nonlocal_forward.py.ast -------------------------------------------------------------------------------- /tests/typecheck/decl_nonlocal_forward.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/decl_nonlocal_forward.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/error_div_zero.py: -------------------------------------------------------------------------------- 1 | print(42 // 0) 2 | -------------------------------------------------------------------------------- /tests/typecheck/error_div_zero.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/error_div_zero.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/error_invalid_print.py: -------------------------------------------------------------------------------- 1 | print(None) 2 | -------------------------------------------------------------------------------- /tests/typecheck/error_invalid_print.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/error_invalid_print.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/error_mod_zero.py: -------------------------------------------------------------------------------- 1 | print(42 % 0) 2 | -------------------------------------------------------------------------------- /tests/typecheck/error_mod_zero.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/error_mod_zero.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/example_classes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/example_classes.py -------------------------------------------------------------------------------- /tests/typecheck/example_classes.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/example_classes.py.ast -------------------------------------------------------------------------------- /tests/typecheck/example_classes.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/example_classes.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/example_contains.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/example_contains.py -------------------------------------------------------------------------------- /tests/typecheck/example_contains.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/example_contains.py.ast -------------------------------------------------------------------------------- /tests/typecheck/example_contains.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/example_contains.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/example_counter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/example_counter.py -------------------------------------------------------------------------------- /tests/typecheck/example_counter.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/example_counter.py.ast -------------------------------------------------------------------------------- /tests/typecheck/example_counter.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/example_counter.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/example_exp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/example_exp.py -------------------------------------------------------------------------------- /tests/typecheck/example_exp.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/example_exp.py.ast -------------------------------------------------------------------------------- /tests/typecheck/example_exp.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/example_exp.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/example_linked_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/example_linked_list.py -------------------------------------------------------------------------------- /tests/typecheck/example_linked_list.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/example_linked_list.py.ast -------------------------------------------------------------------------------- /tests/typecheck/example_linked_list.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/example_linked_list.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/example_rat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/example_rat.py -------------------------------------------------------------------------------- /tests/typecheck/example_rat.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/example_rat.py.ast -------------------------------------------------------------------------------- /tests/typecheck/example_rat.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/example_rat.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/example_sieve.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/example_sieve.py -------------------------------------------------------------------------------- /tests/typecheck/example_sieve.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/example_sieve.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/example_tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/example_tree.py -------------------------------------------------------------------------------- /tests/typecheck/example_tree.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/example_tree.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/exp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/exp.py -------------------------------------------------------------------------------- /tests/typecheck/exp.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/exp.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/expr_binary.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/expr_binary.py -------------------------------------------------------------------------------- /tests/typecheck/expr_binary.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/expr_binary.py.ast -------------------------------------------------------------------------------- /tests/typecheck/expr_binary.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/expr_binary.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/expr_concat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/expr_concat.py -------------------------------------------------------------------------------- /tests/typecheck/expr_concat.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/expr_concat.py.ast -------------------------------------------------------------------------------- /tests/typecheck/expr_concat.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/expr_concat.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/expr_id.py: -------------------------------------------------------------------------------- 1 | x:int = 1 2 | 3 | x - 1 4 | -------------------------------------------------------------------------------- /tests/typecheck/expr_id.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/expr_id.py.ast -------------------------------------------------------------------------------- /tests/typecheck/expr_id.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/expr_id.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/expr_if.py: -------------------------------------------------------------------------------- 1 | 3 if 1 > 2 else 4 2 | -------------------------------------------------------------------------------- /tests/typecheck/expr_if.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/expr_if.py.ast -------------------------------------------------------------------------------- /tests/typecheck/expr_if.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/expr_if.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/expr_int.py: -------------------------------------------------------------------------------- 1 | 6 * 9 2 | -------------------------------------------------------------------------------- /tests/typecheck/expr_int.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/expr_int.py.ast -------------------------------------------------------------------------------- /tests/typecheck/expr_int.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/expr_int.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/expr_list_index.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/expr_list_index.py -------------------------------------------------------------------------------- /tests/typecheck/expr_list_index.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/expr_list_index.py.ast -------------------------------------------------------------------------------- /tests/typecheck/expr_list_index.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/expr_list_index.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/expr_lists.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/expr_lists.py -------------------------------------------------------------------------------- /tests/typecheck/expr_lists.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/expr_lists.py.ast -------------------------------------------------------------------------------- /tests/typecheck/expr_lists.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/expr_lists.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/expr_unary.py: -------------------------------------------------------------------------------- 1 | -1 2 | not False 3 | -------------------------------------------------------------------------------- /tests/typecheck/expr_unary.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/expr_unary.py.ast -------------------------------------------------------------------------------- /tests/typecheck/expr_unary.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/expr_unary.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/expr_var_assign.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/expr_var_assign.py -------------------------------------------------------------------------------- /tests/typecheck/expr_var_assign.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/expr_var_assign.py.ast -------------------------------------------------------------------------------- /tests/typecheck/expr_var_assign.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/expr_var_assign.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/func_def_call.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/func_def_call.py -------------------------------------------------------------------------------- /tests/typecheck/func_def_call.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/func_def_call.py.ast -------------------------------------------------------------------------------- /tests/typecheck/func_def_call.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/func_def_call.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/id_global.py: -------------------------------------------------------------------------------- 1 | x:int = 42 2 | print(x) 3 | -------------------------------------------------------------------------------- /tests/typecheck/id_global.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/id_global.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/id_local.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/id_local.py -------------------------------------------------------------------------------- /tests/typecheck/id_local.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/id_local.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/len_invalid_1.py: -------------------------------------------------------------------------------- 1 | x:[int] = None 2 | 3 | print(len(x)) 4 | -------------------------------------------------------------------------------- /tests/typecheck/len_invalid_1.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/len_invalid_1.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/len_invalid_2.py: -------------------------------------------------------------------------------- 1 | x:int = 1 2 | 3 | print(len(x)) 4 | -------------------------------------------------------------------------------- /tests/typecheck/len_invalid_2.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/len_invalid_2.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/list_concat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_concat.py -------------------------------------------------------------------------------- /tests/typecheck/list_concat.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_concat.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/list_concat_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_concat_2.py -------------------------------------------------------------------------------- /tests/typecheck/list_concat_2.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_concat_2.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/list_concat_none.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_concat_none.py -------------------------------------------------------------------------------- /tests/typecheck/list_concat_none.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_concat_none.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/list_get_element.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_get_element.py -------------------------------------------------------------------------------- /tests/typecheck/list_get_element.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_get_element.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/list_get_element_complex.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_get_element_complex.py -------------------------------------------------------------------------------- /tests/typecheck/list_get_element_complex.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_get_element_complex.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/list_get_element_none.py: -------------------------------------------------------------------------------- 1 | x:[int] = None 2 | 3 | print(x[0]) 4 | -------------------------------------------------------------------------------- /tests/typecheck/list_get_element_none.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_get_element_none.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/list_get_element_oob_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_get_element_oob_1.py -------------------------------------------------------------------------------- /tests/typecheck/list_get_element_oob_1.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_get_element_oob_1.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/list_get_element_oob_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_get_element_oob_2.py -------------------------------------------------------------------------------- /tests/typecheck/list_get_element_oob_2.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_get_element_oob_2.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/list_get_element_oob_3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_get_element_oob_3.py -------------------------------------------------------------------------------- /tests/typecheck/list_get_element_oob_3.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_get_element_oob_3.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/list_len.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_len.py -------------------------------------------------------------------------------- /tests/typecheck/list_len.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_len.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/list_len_empty.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_len_empty.py -------------------------------------------------------------------------------- /tests/typecheck/list_len_empty.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_len_empty.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/list_set_element.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_set_element.py -------------------------------------------------------------------------------- /tests/typecheck/list_set_element.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_set_element.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/list_set_element_none.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_set_element_none.py -------------------------------------------------------------------------------- /tests/typecheck/list_set_element_none.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_set_element_none.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/list_set_element_oob_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_set_element_oob_1.py -------------------------------------------------------------------------------- /tests/typecheck/list_set_element_oob_1.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_set_element_oob_1.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/list_set_element_oob_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_set_element_oob_2.py -------------------------------------------------------------------------------- /tests/typecheck/list_set_element_oob_2.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_set_element_oob_2.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/list_set_element_oob_3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_set_element_oob_3.py -------------------------------------------------------------------------------- /tests/typecheck/list_set_element_oob_3.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/list_set_element_oob_3.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/literal_bool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/literal_bool.py -------------------------------------------------------------------------------- /tests/typecheck/literal_bool.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/literal_bool.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/literal_int.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/literal_int.py -------------------------------------------------------------------------------- /tests/typecheck/literal_int.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/literal_int.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/literal_str.py: -------------------------------------------------------------------------------- 1 | print("Hello World") 2 | -------------------------------------------------------------------------------- /tests/typecheck/literal_str.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/literal_str.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/nested.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/nested.py -------------------------------------------------------------------------------- /tests/typecheck/nested.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/nested.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/nested2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/nested2.py -------------------------------------------------------------------------------- /tests/typecheck/nested2.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/nested2.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/object_attr_get.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/object_attr_get.py -------------------------------------------------------------------------------- /tests/typecheck/object_attr_get.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/object_attr_get.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/object_attr_get_none.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/object_attr_get_none.py -------------------------------------------------------------------------------- /tests/typecheck/object_attr_get_none.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/object_attr_get_none.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/object_attr_set.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/object_attr_set.py -------------------------------------------------------------------------------- /tests/typecheck/object_attr_set.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/object_attr_set.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/object_attr_set_eval_order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/object_attr_set_eval_order.py -------------------------------------------------------------------------------- /tests/typecheck/object_attr_set_eval_order.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/object_attr_set_eval_order.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/object_attr_set_none.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/object_attr_set_none.py -------------------------------------------------------------------------------- /tests/typecheck/object_attr_set_none.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/object_attr_set_none.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/object_init.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/object_init.py -------------------------------------------------------------------------------- /tests/typecheck/object_init.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/object_init.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/object_method.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/object_method.py -------------------------------------------------------------------------------- /tests/typecheck/object_method.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/object_method.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/object_method_complex_call.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/object_method_complex_call.py -------------------------------------------------------------------------------- /tests/typecheck/object_method_complex_call.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/object_method_complex_call.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/object_method_nested.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/object_method_nested.py -------------------------------------------------------------------------------- /tests/typecheck/object_method_nested.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/object_method_nested.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/object_method_none.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/object_method_none.py -------------------------------------------------------------------------------- /tests/typecheck/object_method_none.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/object_method_none.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/object_method_override.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/object_method_override.py -------------------------------------------------------------------------------- /tests/typecheck/object_method_override.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/object_method_override.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/op_add.py: -------------------------------------------------------------------------------- 1 | print(1 + 100) 2 | -------------------------------------------------------------------------------- /tests/typecheck/op_add.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/op_add.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/op_cmp_bool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/op_cmp_bool.py -------------------------------------------------------------------------------- /tests/typecheck/op_cmp_bool.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/op_cmp_bool.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/op_cmp_int.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/op_cmp_int.py -------------------------------------------------------------------------------- /tests/typecheck/op_cmp_int.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/op_cmp_int.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/op_div_mod.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/op_div_mod.py -------------------------------------------------------------------------------- /tests/typecheck/op_div_mod.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/op_div_mod.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/op_is.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/op_is.py -------------------------------------------------------------------------------- /tests/typecheck/op_is.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/op_is.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/op_logical.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/op_logical.py -------------------------------------------------------------------------------- /tests/typecheck/op_logical.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/op_logical.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/op_mul.py: -------------------------------------------------------------------------------- 1 | print(6*9*2) 2 | -------------------------------------------------------------------------------- /tests/typecheck/op_mul.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/op_mul.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/op_negate.py: -------------------------------------------------------------------------------- 1 | x:int = 42 2 | print(-x) 3 | -------------------------------------------------------------------------------- /tests/typecheck/op_negate.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/op_negate.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/op_sub.py: -------------------------------------------------------------------------------- 1 | print(1 - 100) 2 | -------------------------------------------------------------------------------- /tests/typecheck/op_sub.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/op_sub.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/pass.py: -------------------------------------------------------------------------------- 1 | pass 2 | -------------------------------------------------------------------------------- /tests/typecheck/pass.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/pass.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/predef_constructors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/predef_constructors.py -------------------------------------------------------------------------------- /tests/typecheck/predef_constructors.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/predef_constructors.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/prime.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/prime.py -------------------------------------------------------------------------------- /tests/typecheck/prime.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/prime.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/stdlib.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stdlib.py -------------------------------------------------------------------------------- /tests/typecheck/stdlib.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stdlib.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_list.py -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_list.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_list.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_list_empty.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_list_empty.py -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_list_empty.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_list_empty.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_list_eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_list_eval.py -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_list_eval.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_list_eval.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_list_modify.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_list_modify.py -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_list_modify.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_list_modify.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_list_nested.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_list_nested.py -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_list_nested.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_list_nested.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_list_nested_same_var.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_list_nested_same_var.py -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_list_nested_same_var.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_list_nested_same_var.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_list_none.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_list_none.py -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_list_none.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_list_none.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_list_nonlocal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_list_nonlocal.py -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_list_nonlocal.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_list_nonlocal.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_list_return.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_list_return.py -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_list_return.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_list_return.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_lists.py: -------------------------------------------------------------------------------- 1 | x:int = 0 2 | 3 | for x in [1, 2, 3]: 4 | x + 1 5 | -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_lists.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_lists.py.ast -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_lists.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_lists.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_str.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_str.py -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_str.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_str.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_str_empty.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_str_empty.py -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_str_empty.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_str_empty.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_str_eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_str_eval.py -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_str_eval.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_str_eval.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_str_nested.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_str_nested.py -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_str_nested.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_str_nested.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_str_same_var.py: -------------------------------------------------------------------------------- 1 | x:str = "xXx" 2 | 3 | for x in x: 4 | print(x) 5 | -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_str_same_var.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_str_same_var.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_strings.py: -------------------------------------------------------------------------------- 1 | s:str = "Hello" 2 | 3 | for s in s: 4 | s[0] 5 | -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_strings.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_strings.py.ast -------------------------------------------------------------------------------- /tests/typecheck/stmt_for_strings.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_for_strings.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/stmt_if.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_if.py -------------------------------------------------------------------------------- /tests/typecheck/stmt_if.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_if.py.ast -------------------------------------------------------------------------------- /tests/typecheck/stmt_if.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_if.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/stmt_list_assign.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_list_assign.py -------------------------------------------------------------------------------- /tests/typecheck/stmt_list_assign.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_list_assign.py.ast -------------------------------------------------------------------------------- /tests/typecheck/stmt_list_assign.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_list_assign.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/stmt_return_early.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_return_early.py -------------------------------------------------------------------------------- /tests/typecheck/stmt_return_early.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_return_early.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/stmt_var_assign.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_var_assign.py -------------------------------------------------------------------------------- /tests/typecheck/stmt_var_assign.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_var_assign.py.ast -------------------------------------------------------------------------------- /tests/typecheck/stmt_var_assign.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_var_assign.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/stmt_while.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_while.py -------------------------------------------------------------------------------- /tests/typecheck/stmt_while.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_while.py.ast -------------------------------------------------------------------------------- /tests/typecheck/stmt_while.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/stmt_while.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/str_cat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/str_cat.py -------------------------------------------------------------------------------- /tests/typecheck/str_cat.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/str_cat.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/str_cat_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/str_cat_2.py -------------------------------------------------------------------------------- /tests/typecheck/str_cat_2.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/str_cat_2.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/str_cmp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/str_cmp.py -------------------------------------------------------------------------------- /tests/typecheck/str_cmp.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/str_cmp.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/str_get_element.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/str_get_element.py -------------------------------------------------------------------------------- /tests/typecheck/str_get_element.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/str_get_element.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/str_get_element_oob_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/str_get_element_oob_1.py -------------------------------------------------------------------------------- /tests/typecheck/str_get_element_oob_1.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/str_get_element_oob_1.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/str_get_element_oob_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/str_get_element_oob_2.py -------------------------------------------------------------------------------- /tests/typecheck/str_get_element_oob_2.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/str_get_element_oob_2.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/str_get_element_oob_3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/str_get_element_oob_3.py -------------------------------------------------------------------------------- /tests/typecheck/str_get_element_oob_3.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/str_get_element_oob_3.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/str_len.py: -------------------------------------------------------------------------------- 1 | print(len("ChocoPy")) 2 | -------------------------------------------------------------------------------- /tests/typecheck/str_len.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/str_len.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/strings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/strings.py -------------------------------------------------------------------------------- /tests/typecheck/strings.py.ast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/strings.py.ast -------------------------------------------------------------------------------- /tests/typecheck/strings.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/strings.py.ast.typed -------------------------------------------------------------------------------- /tests/typecheck/var_assign.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/var_assign.py -------------------------------------------------------------------------------- /tests/typecheck/var_assign.py.ast.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/tests/typecheck/var_assign.py.ast.typed -------------------------------------------------------------------------------- /wasm.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yangdanny97/chocopy-python-compiler/HEAD/wasm.js --------------------------------------------------------------------------------