restructure, add tests
authorMart Lubbers <mart@martlubbers.net>
Mon, 31 Jan 2022 13:23:02 +0000 (14:23 +0100)
committerMart Lubbers <mart@martlubbers.net>
Mon, 31 Jan 2022 13:23:23 +0000 (14:23 +0100)
commitdf33363a843f0b69f8e14b06a50f0725a44193bc
tree04130e70803679cf83ec04ec4fec71fb52269adc
parent3dee98d7e0b342c84119471906ae91d706684679
restructure, add tests
104 files changed:
.gitignore
Doxyfile [new file with mode: 0644]
Makefile
array.h [deleted file]
compilerunc.bash [new file with mode: 0755]
compilerunssm.bash [new file with mode: 0755]
gen.h [deleted file]
ident.h [deleted file]
src/Makefile [new file with mode: 0644]
src/array.c [moved from array.c with 100% similarity]
src/array.h [new file with mode: 0644]
src/ast.c [moved from ast.c with 100% similarity]
src/ast.h [moved from ast.h with 100% similarity]
src/gen.c [moved from gen.c with 100% similarity]
src/gen.h [new file with mode: 0644]
src/gen/c.c [moved from gen/c.c with 98% similarity]
src/gen/c.h [moved from gen/c.h with 100% similarity]
src/gen/ssm.c [moved from gen/ssm.c with 100% similarity]
src/gen/ssm.h [moved from gen/ssm.h with 100% similarity]
src/ident.c [moved from ident.c with 100% similarity]
src/ident.h [new file with mode: 0644]
src/list.c [moved from list.c with 100% similarity]
src/list.h [moved from list.h with 100% similarity]
src/parse.y [moved from parse.y with 100% similarity]
src/scan.l [moved from scan.l with 90% similarity]
src/sem.c [moved from sem.c with 100% similarity]
src/sem.h [moved from sem.h with 100% similarity]
src/sem/constant.c [moved from sem/constant.c with 100% similarity]
src/sem/constant.h [moved from sem/constant.h with 100% similarity]
src/sem/hm.c [moved from sem/hm.c with 100% similarity]
src/sem/hm.h [moved from sem/hm.h with 100% similarity]
src/sem/hm/gamma.c [moved from sem/hm/gamma.c with 100% similarity]
src/sem/hm/gamma.h [moved from sem/hm/gamma.h with 100% similarity]
src/sem/hm/scheme.c [moved from sem/hm/scheme.c with 100% similarity]
src/sem/hm/scheme.h [moved from sem/hm/scheme.h with 100% similarity]
src/sem/hm/subst.c [moved from sem/hm/subst.c with 100% similarity]
src/sem/hm/subst.h [moved from sem/hm/subst.h with 100% similarity]
src/sem/main.c [moved from sem/main.c with 100% similarity]
src/sem/main.h [moved from sem/main.h with 100% similarity]
src/sem/return.c [moved from sem/return.c with 100% similarity]
src/sem/return.h [moved from sem/return.h with 100% similarity]
src/sem/scc.c [moved from sem/scc.c with 100% similarity]
src/sem/scc.h [moved from sem/scc.h with 100% similarity]
src/sem/type.c [moved from sem/type.c with 100% similarity]
src/sem/type.h [moved from sem/type.h with 100% similarity]
src/sem/vardecl.c [moved from sem/vardecl.c with 100% similarity]
src/sem/vardecl.h [moved from sem/vardecl.h with 100% similarity]
src/splc.c [moved from splc.c with 100% similarity]
src/type.c [moved from type.c with 100% similarity]
src/type.h [moved from type.h with 100% similarity]
src/util.c [moved from util.c with 91% similarity]
src/util.h [moved from util.h with 100% similarity]
test.bash [new file with mode: 0644]
tests/2D.spl [new file with mode: 0644]
tests/3D.spl [new file with mode: 0644]
tests/Example.spl [new file with mode: 0644]
tests/SumProduct.spl [new file with mode: 0644]
tests/a_bit_of_everything.spl [new file with mode: 0644]
tests/arguments.spl [new file with mode: 0644]
tests/assignment_to_builtin.spl [new file with mode: 0644]
tests/bool.expected [new file with mode: 0644]
tests/bool.spl [new file with mode: 0644]
tests/brainfuck.spl [new file with mode: 0644]
tests/comment.spl [new file with mode: 0644]
tests/constants.spl [new file with mode: 0644]
tests/constants_corner_cases.spl [new file with mode: 0644]
tests/cyclic.spl [new file with mode: 0644]
tests/empty.spl [new file with mode: 0644]
tests/higher_order_functions.spl [new file with mode: 0644]
tests/identity.spl [new file with mode: 0644]
tests/infinite_type_shouldfail.spl [new file with mode: 0644]
tests/integers.spl [new file with mode: 0644]
tests/list.spl [new file with mode: 0644]
tests/list_ops.spl [new file with mode: 0644]
tests/lists.spl [new file with mode: 0644]
tests/many_parenthesis.spl [new file with mode: 0644]
tests/monomorph.spl [new file with mode: 0644]
tests/more_parenthesis.spl [new file with mode: 0644]
tests/multiple_recursion.spl [new file with mode: 0644]
tests/multiple_recursion_values.spl [new file with mode: 0644]
tests/mutrec.spl [new file with mode: 0644]
tests/op.spl [new file with mode: 0644]
tests/overloading.spl [new file with mode: 0644]
tests/polymorphic_value_again_shouldfail.spl [new file with mode: 0644]
tests/polymorphic_value_indirect_shouldfail.spl [new file with mode: 0644]
tests/polymorphic_value_shouldfail.spl [new file with mode: 0644]
tests/problematic.spl [new file with mode: 0644]
tests/problematic_programs.spl [new file with mode: 0644]
tests/recursion.spl [new file with mode: 0644]
tests/return_ill_typed.spl [new file with mode: 0644]
tests/return_in_all_code_paths.spl [new file with mode: 0644]
tests/return_well_typed.spl [new file with mode: 0644]
tests/self_application_shouldfail.spl [new file with mode: 0644]
tests/shadow.spl [new file with mode: 0644]
tests/sieve.spl [new file with mode: 0644]
tests/stress.spl [new file with mode: 0644]
tests/stress_test.spl [new file with mode: 0644]
tests/sum.spl [new file with mode: 0644]
tests/unary_minus.spl [new file with mode: 0644]
tests/unbalanced_parenthesis.spl [new file with mode: 0644]
tests/unbalanced_parenthesis2.spl [new file with mode: 0644]
tests/while.spl [new file with mode: 0644]
tests/whitespaces.spl [new file with mode: 0644]
tests/x.spl [new file with mode: 0644]