lab1&lab2
Showing
.clang-format
100644 → 100755
File mode changed from 100644 to 100755
.gitignore
100644 → 100755
File mode changed from 100644 to 100755
README.md
100644 → 100755
File mode changed from 100644 to 100755
include/cminusfc/cminusf_builder.hpp
100644 → 100755
include/common/ast.hpp
100644 → 100755
File mode changed from 100644 to 100755
include/common/logging.hpp
100644 → 100755
File mode changed from 100644 to 100755
include/common/syntax_tree.h
100644 → 100755
File mode changed from 100644 to 100755
include/lightir/BasicBlock.hpp
100644 → 100755
File mode changed from 100644 to 100755
include/lightir/Constant.hpp
100644 → 100755
File mode changed from 100644 to 100755
include/lightir/Function.hpp
100644 → 100755
File mode changed from 100644 to 100755
include/lightir/GlobalVariable.hpp
100644 → 100755
File mode changed from 100644 to 100755
include/lightir/IRBuilder.hpp
100644 → 100755
File mode changed from 100644 to 100755
include/lightir/IRprinter.hpp
100644 → 100755
File mode changed from 100644 to 100755
include/lightir/Instruction.hpp
100644 → 100755
File mode changed from 100644 to 100755
include/lightir/Module.hpp
100644 → 100755
File mode changed from 100644 to 100755
include/lightir/Type.hpp
100644 → 100755
File mode changed from 100644 to 100755
include/lightir/User.hpp
100644 → 100755
File mode changed from 100644 to 100755
include/lightir/Value.hpp
100644 → 100755
File mode changed from 100644 to 100755
src/CMakeLists.txt
100644 → 100755
File mode changed from 100644 to 100755
src/cminusfc/CMakeLists.txt
100644 → 100755
File mode changed from 100644 to 100755
src/cminusfc/cminusf_builder.cpp
100644 → 100755
This diff is collapsed.
src/cminusfc/main.cpp
100644 → 100755
File mode changed from 100644 to 100755
src/common/CMakeLists.txt
100644 → 100755
File mode changed from 100644 to 100755
src/common/ast.cpp
100644 → 100755
src/common/logging.cpp
100644 → 100755
File mode changed from 100644 to 100755
src/common/syntax_tree.c
100644 → 100755
File mode changed from 100644 to 100755
src/io/CMakeLists.txt
100644 → 100755
File mode changed from 100644 to 100755
src/io/io.c
100644 → 100755
File mode changed from 100644 to 100755
src/io/io.h
100644 → 100755
File mode changed from 100644 to 100755
src/lightir/BasicBlock.cpp
100644 → 100755
File mode changed from 100644 to 100755
src/lightir/CMakeLists.txt
100644 → 100755
File mode changed from 100644 to 100755
src/lightir/Constant.cpp
100644 → 100755
File mode changed from 100644 to 100755
src/lightir/Function.cpp
100644 → 100755
File mode changed from 100644 to 100755
src/lightir/GlobalVariable.cpp
100644 → 100755
File mode changed from 100644 to 100755
src/lightir/IRprinter.cpp
100644 → 100755
File mode changed from 100644 to 100755
src/lightir/Instruction.cpp
100644 → 100755
File mode changed from 100644 to 100755
src/lightir/Module.cpp
100644 → 100755
File mode changed from 100644 to 100755
src/lightir/Type.cpp
100644 → 100755
File mode changed from 100644 to 100755
src/lightir/User.cpp
100644 → 100755
File mode changed from 100644 to 100755
src/lightir/Value.cpp
100644 → 100755
File mode changed from 100644 to 100755
src/logging/CMakeLists.txt
100644 → 100755
File mode changed from 100644 to 100755
src/logging/test_ast.cpp
100644 → 100755
File mode changed from 100644 to 100755
src/logging/test_logging.cpp
100644 → 100755
File mode changed from 100644 to 100755
src/parser/CMakeLists.txt
100644 → 100755
File mode changed from 100644 to 100755
src/parser/lexical_analyzer.l
100644 → 100755
src/parser/parser.c
100644 → 100755
File mode changed from 100644 to 100755
src/parser/syntax_analyzer.y
100644 → 100755
tests/1-parser/input/easy/FAIL_comment.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/1-parser/input/easy/FAIL_comment2.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/1-parser/input/easy/FAIL_function.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/1-parser/input/easy/FAIL_id.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/1-parser/input/easy/expr.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/1-parser/input/easy/id.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/1-parser/input/hard/You_Should_Pass.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/1-parser/input/hard/assoc.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/1-parser/input/hard/gcd.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/1-parser/input/hard/hanoi.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/1-parser/input/hard/if.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/1-parser/input/hard/selectionsort.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/1-parser/input/normal/FAIL_assign.cminus
100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
tests/1-parser/input/normal/array.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/1-parser/input/normal/func.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/1-parser/input/normal/if.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/1-parser/input/normal/local-decl.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/1-parser/input/normal/skip_spaces.cminus
100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
tests/1-parser/output_standard/hard/You_Should_Pass.syntax_tree
100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
tests/1-parser/output_standard_ast/easy/expr.ast
100644 → 100755
File mode changed from 100644 to 100755
tests/1-parser/output_standard_ast/easy/id.ast
100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
tests/1-parser/output_standard_ast/hard/gcd.ast
100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
tests/1-parser/output_standard_ast/hard/if.ast
100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
tests/1-parser/output_standard_ast/normal/if.ast
100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
tests/2-ir-gen/autogen/.gitignore
100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/autogen/answers/lv0_1/input.in
100644 → 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/autogen/answers/lv0_1/input.out
100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/autogen/answers/lv0_1/return.out
100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/autogen/answers/lv1/assign_float_array_global.out
100644 → 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/autogen/answers/lv1/assign_float_array_local.out
100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/autogen/answers/lv1/idx_float.out
100644 → 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/autogen/answers/lv1/innout.in
100644 → 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/autogen/answers/lv1/innout.out
100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/autogen/answers/lv1/scope.out
100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/autogen/answers/lv3/complex1.out
100644 → 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/autogen/answers/lv3/complex2.in
100644 → 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/autogen/answers/lv3/complex2.out
100644 → 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/autogen/answers/lv3/complex3.in
100644 → 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/autogen/answers/lv3/complex3.out
100644 → 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/autogen/answers/lv3/complex4.out
100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
This diff is collapsed.
This diff is collapsed.
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/autogen/testcases/lv1/assign_int_var_local.cminus
100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/autogen/testcases/lv1/negidx_floatfuncall.cminus
100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/autogen/testcases/lv2/funcall_array_array.cminus
100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/autogen/testcases/lv2/funcall_float_array.cminus
100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/warmup/c_cases/assign.c
100644 → 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/warmup/c_cases/fun.c
100644 → 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/warmup/c_cases/if.c
100644 → 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/warmup/c_cases/while.c
100644 → 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/warmup/calculator/CMakeLists.txt
100644 → 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/warmup/calculator/calc.cpp
100644 → 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/warmup/calculator/calc_ast.cpp
100644 → 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/warmup/calculator/calc_ast.hpp
100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/warmup/calculator/calculator.l
100644 → 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/warmup/calculator/calculator.y
100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/warmup/stu_cpp/fun_generator.cpp
100644 → 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/warmup/stu_cpp/if_generator.cpp
100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/warmup/stu_ll/assign_hand.ll
100644 → 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/warmup/stu_ll/fun_hand.ll
100644 → 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/warmup/stu_ll/if_hand.ll
100644 → 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/warmup/stu_ll/while_hand.ll
100644 → 100755
File mode changed from 100644 to 100755
tests/2-ir-gen/warmup/ta_gcd/gcd_array.c
100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
tests/CMakeLists.txt
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/1-return.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/1-return.out
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/10-funcall.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/10-funcall.out
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/11-funcall_chain.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/11-funcall_chain.out
100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
tests/testcases_general/12-funcall_recursion.out
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/13-if_stmt.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/13-if_stmt.out
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/14-while_stmt.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/14-while_stmt.out
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/15-if_while.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/15-if_while.out
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/16-if_chain.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/16-if_chain.out
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/17-while_chain.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/17-while_chain.out
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/18-global_var.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/18-global_var.out
100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
tests/testcases_general/19-global_local_var.out
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/2-decl_int.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/2-decl_int.out
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/20-gcd_array.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/20-gcd_array.out
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/21-comment.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/21-comment.out
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/3-decl_float.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/3-decl_float.out
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/4-decl_int_array.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/4-decl_int_array.out
100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
tests/testcases_general/5-decl_float_array.out
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/6-num_add_int.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/6-num_add_int.out
100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
tests/testcases_general/9-assign_cast.cminus
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/9-assign_cast.out
100644 → 100755
File mode changed from 100644 to 100755
tests/testcases_general/README.md
100644 → 100755
File mode changed from 100644 to 100755
Please register or sign in to comment