├── .gitignore ├── HW-Grammars ├── int-exp-grammars.tex ├── mathpartir.sty └── scratch.rkt ├── README.md ├── conditionals.rkt ├── dynamic-interp.rkt ├── dynamic-typing.rkt ├── exams ├── copy-collect-soln.graffle ├── copy-collect-soln.pdf ├── copy-collect.graffle ├── copy-collect.pdf ├── interfere.graffle ├── interfere.pdf ├── interfere2.graffle ├── interfere2.pdf ├── midterm.tex └── vectors.graffle ├── functions.rkt ├── heap.rkt ├── int_exp.rkt ├── int_exp_compiler.rkt ├── interp.rkt ├── lambda.rkt ├── lecture-plan.txt ├── notes.txt ├── optimize-control.rkt ├── priority_queue.rkt ├── reg_int_exp_compiler.rkt ├── register_allocator.rkt ├── run-tests.rkt ├── runtime-config.rkt ├── runtime.c ├── runtime.h ├── runtime.student-copy.c ├── schedule.txt ├── tail-call-lecture.txt ├── tests ├── s0_1.rkt ├── s0_10.in ├── s0_10.rkt ├── s0_11.rkt ├── s0_12.rkt ├── s0_13.rkt ├── s0_14.in ├── s0_14.rkt ├── s0_15.in ├── s0_15.rkt ├── s0_16.rkt ├── s0_17.rkt ├── s0_18.rkt ├── s0_19.rkt ├── s0_2.rkt ├── s0_20.rkt ├── s0_21.rkt ├── s0_22.rkt ├── s0_23.rkt ├── s0_24.res ├── s0_24.rkt ├── s0_25.rkt ├── s0_26.in ├── s0_26.rkt ├── s0_27.in ├── s0_27.rkt ├── s0_3.rkt ├── s0_4.rkt ├── s0_5.rkt ├── s0_6.rkt ├── s0_7.rkt ├── s0_8.rkt ├── s0_9.in ├── s0_9.rkt ├── s1_1.rkt ├── s1_10.rkt ├── s1_11.rkt ├── s1_12.rkt ├── s1_13.rkt ├── s1_14.in ├── s1_14.rkt ├── s1_15.rkt ├── s1_16.in ├── s1_16.rkt ├── s1_17.rkt ├── s1_18.rkt ├── s1_19.in ├── s1_19.rkt ├── s1_2.rkt ├── s1_20.in ├── s1_20.rkt ├── s1_21.in ├── s1_21.rkt ├── s1_22.rkt ├── s1_23.rkt ├── s1_24.rkt ├── s1_25.in ├── s1_25.rkt ├── s1_26.rkt ├── s1_26.tyerr ├── s1_27.rkt ├── s1_27.tyerr ├── s1_28.rkt ├── s1_28.tyerr ├── s1_29.rkt ├── s1_29.tyerr ├── s1_3.rkt ├── s1_30.res ├── s1_30.rkt ├── s1_31.rkt ├── s1_32.in ├── s1_32.res ├── s1_32.rkt ├── s1_33.rkt ├── s1_34.rkt ├── s1_35.rkt ├── s1_36.rkt ├── s1_4.rkt ├── s1_5.in ├── s1_5.rkt ├── s1_6.in ├── s1_6.rkt ├── s1_7.in ├── s1_7.rkt ├── s1_8.rkt ├── s1_9.rkt ├── s2_1.rkt ├── s2_10.rkt ├── s2_11.rkt ├── s2_12.rkt ├── s2_13.rkt ├── s2_14.res ├── s2_14.rkt ├── s2_15.rkt ├── s2_16.res ├── s2_16.rkt ├── s2_17.rkt ├── s2_18.rkt ├── s2_19.res ├── s2_19.rkt ├── s2_2.rkt ├── s2_20.rkt ├── s2_3.rkt ├── s2_4.rkt ├── s2_5.rkt ├── s2_6.rkt ├── s2_7.rkt ├── s2_8.rkt ├── s2_9.rkt ├── s3_1.rkt ├── s3_10.rkt ├── s3_11.rkt ├── s3_12.rkt ├── s3_13.rkt ├── s3_14.rkt ├── s3_15.rkt ├── s3_16.rkt ├── s3_17.rkt ├── s3_18.rkt ├── s3_19.rkt ├── s3_2.rkt ├── s3_3.rkt ├── s3_4.rkt ├── s3_5.rkt ├── s3_6.rkt ├── s3_7.rkt ├── s3_8.rkt ├── s3_9.rkt ├── s4_0.rkt ├── s4_1.rkt ├── s4_2.rkt ├── s4_3.rkt ├── s4_4.rkt ├── s4_5.rkt ├── s4_6.rkt ├── s4_7.rkt ├── s6_0.rkt ├── s6_1.res ├── s6_1.rkt ├── s6_10.rkt ├── s6_2.rkt ├── s6_3.rkt ├── s6_4.rkt ├── s6_5.rkt ├── s6_6.rkt ├── s6_7.rkt ├── s6_8.rkt ├── s6_9.rkt ├── s7_0.rkt ├── s7_1.rkt ├── s7_2.rkt ├── s7_3.rkt ├── s7_4.in ├── s7_4.rkt ├── s7_5.rkt ├── s7_6.in ├── s7_6.rkt ├── s7_7.rkt ├── s7_8.rkt └── student-tests │ ├── README.md │ ├── r1_1.rkt │ ├── r1_10.in │ ├── r1_10.rkt │ ├── r1_11.rkt │ ├── r1_12.rkt │ ├── r1_13.in │ ├── r1_13.rkt │ ├── r1_14.rkt │ ├── r1_15.in │ ├── r1_15.rkt │ ├── r1_16.rkt │ ├── r1_17.rkt │ ├── r1_18.rkt │ ├── r1_19.in │ ├── r1_19.rkt │ ├── r1_2.rkt │ ├── r1_20.rkt │ ├── r1_21.rkt │ ├── r1_3.rkt │ ├── r1_4.rkt │ ├── r1_5.rkt │ ├── r1_6.rkt │ ├── r1_7.rkt │ ├── r1_8.rkt │ ├── r1_9.in │ ├── r1_9.rkt │ ├── r1a_1.rkt │ ├── r1a_2.rkt │ ├── r1a_3.rkt │ ├── r1a_4.in │ ├── r1a_4.rkt │ ├── r1a_5.in │ ├── r1a_5.rkt │ ├── r1a_6.in │ ├── r1a_6.rkt │ ├── r1a_7.rkt │ ├── r1a_8.rkt │ ├── r2_1.rkt │ ├── r2_10.rkt │ ├── r2_11.rkt │ ├── r2_12.rkt │ ├── r2_13.rkt │ ├── r2_14.rkt │ ├── r2_14.tyerr │ ├── r2_15.rkt │ ├── r2_16.rkt │ ├── r2_17.rkt │ ├── r2_17.tyerr │ ├── r2_18.rkt │ ├── r2_18.tyerr │ ├── r2_19.rkt │ ├── r2_2.rkt │ ├── r2_20.rkt │ ├── r2_20.tyerr │ ├── r2_21.rkt │ ├── r2_21.tyerr │ ├── r2_22.rkt │ ├── r2_22.tyerr │ ├── r2_23.rkt │ ├── r2_23.tyerr │ ├── r2_3.rkt │ ├── r2_4.rkt │ ├── r2_4.tyerr │ ├── r2_5.rkt │ ├── r2_5.tyerr │ ├── r2_6.rkt │ ├── r2_7.rkt │ ├── r2_7.tyerr │ ├── r2_8.rkt │ ├── r2_8.tyerr │ ├── r2_9.rkt │ ├── r3_1.rkt │ ├── r3_10.rkt │ ├── r3_10.tyerr │ ├── r3_11.rkt │ ├── r3_12.rkt │ ├── r3_13.rkt │ ├── r3_14.rkt │ ├── r3_15.in │ ├── r3_15.rkt │ ├── r3_2.rkt │ ├── r3_3.rkt │ ├── r3_3.tyerr │ ├── r3_4.rkt │ ├── r3_5.rkt │ ├── r3_6.rkt │ ├── r3_6.tyerr │ ├── r3_7.rkt │ ├── r3_8.rkt │ ├── r3_9.rkt │ ├── r3_9.tyerr │ ├── r4_1.rkt │ ├── r4_10.rkt │ ├── r4_11.rkt │ ├── r4_12.rkt │ ├── r4_13.rkt │ ├── r4_14.rkt │ ├── r4_14.tyerr │ ├── r4_15.rkt │ ├── r4_15.tyerr │ ├── r4_16.rkt │ ├── r4_16.tyerr │ ├── r4_17.rkt │ ├── r4_18.rkt │ ├── r4_19.rkt │ ├── r4_2.rkt │ ├── r4_2.tyerr │ ├── r4_3.rkt │ ├── r4_3.tyerr │ ├── r4_4.rkt │ ├── r4_5.rkt │ ├── r4_6.rkt │ ├── r4_7.in │ ├── r4_7.rkt │ ├── r4_8.rkt │ ├── r4_9.rkt │ ├── r5_1.rkt │ ├── r5_10.rkt │ ├── r5_11.rkt │ ├── r5_11.rkt.tyerr │ ├── r5_11.tyerr │ ├── r5_12.in │ ├── r5_12.rkt │ ├── r5_2.rkt │ ├── r5_3.rkt │ ├── r5_4.rkt │ ├── r5_5.rkt │ ├── r5_6.rkt │ ├── r5_7.rkt │ ├── r5_7.tyerr │ ├── r5_8.rkt │ ├── r5_8.tyerr │ └── r5_9.rkt ├── uncover-types.rkt ├── utilities.rkt └── vectors.rkt /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/.gitignore -------------------------------------------------------------------------------- /HW-Grammars/int-exp-grammars.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/HW-Grammars/int-exp-grammars.tex -------------------------------------------------------------------------------- /HW-Grammars/mathpartir.sty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/HW-Grammars/mathpartir.sty -------------------------------------------------------------------------------- /HW-Grammars/scratch.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/HW-Grammars/scratch.rkt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/README.md -------------------------------------------------------------------------------- /conditionals.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/conditionals.rkt -------------------------------------------------------------------------------- /dynamic-interp.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/dynamic-interp.rkt -------------------------------------------------------------------------------- /dynamic-typing.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/dynamic-typing.rkt -------------------------------------------------------------------------------- /exams/copy-collect-soln.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/exams/copy-collect-soln.graffle -------------------------------------------------------------------------------- /exams/copy-collect-soln.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/exams/copy-collect-soln.pdf -------------------------------------------------------------------------------- /exams/copy-collect.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/exams/copy-collect.graffle -------------------------------------------------------------------------------- /exams/copy-collect.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/exams/copy-collect.pdf -------------------------------------------------------------------------------- /exams/interfere.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/exams/interfere.graffle -------------------------------------------------------------------------------- /exams/interfere.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/exams/interfere.pdf -------------------------------------------------------------------------------- /exams/interfere2.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/exams/interfere2.graffle -------------------------------------------------------------------------------- /exams/interfere2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/exams/interfere2.pdf -------------------------------------------------------------------------------- /exams/midterm.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/exams/midterm.tex -------------------------------------------------------------------------------- /exams/vectors.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/exams/vectors.graffle -------------------------------------------------------------------------------- /functions.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/functions.rkt -------------------------------------------------------------------------------- /heap.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/heap.rkt -------------------------------------------------------------------------------- /int_exp.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/int_exp.rkt -------------------------------------------------------------------------------- /int_exp_compiler.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/int_exp_compiler.rkt -------------------------------------------------------------------------------- /interp.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/interp.rkt -------------------------------------------------------------------------------- /lambda.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/lambda.rkt -------------------------------------------------------------------------------- /lecture-plan.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/lecture-plan.txt -------------------------------------------------------------------------------- /notes.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/notes.txt -------------------------------------------------------------------------------- /optimize-control.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/optimize-control.rkt -------------------------------------------------------------------------------- /priority_queue.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/priority_queue.rkt -------------------------------------------------------------------------------- /reg_int_exp_compiler.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/reg_int_exp_compiler.rkt -------------------------------------------------------------------------------- /register_allocator.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/register_allocator.rkt -------------------------------------------------------------------------------- /run-tests.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/run-tests.rkt -------------------------------------------------------------------------------- /runtime-config.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/runtime-config.rkt -------------------------------------------------------------------------------- /runtime.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/runtime.c -------------------------------------------------------------------------------- /runtime.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/runtime.h -------------------------------------------------------------------------------- /runtime.student-copy.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/runtime.student-copy.c -------------------------------------------------------------------------------- /schedule.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/schedule.txt -------------------------------------------------------------------------------- /tail-call-lecture.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tail-call-lecture.txt -------------------------------------------------------------------------------- /tests/s0_1.rkt: -------------------------------------------------------------------------------- 1 | 42 -------------------------------------------------------------------------------- /tests/s0_10.in: -------------------------------------------------------------------------------- 1 | 45 2 | 3 -------------------------------------------------------------------------------- /tests/s0_10.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s0_10.rkt -------------------------------------------------------------------------------- /tests/s0_11.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s0_11.rkt -------------------------------------------------------------------------------- /tests/s0_12.rkt: -------------------------------------------------------------------------------- 1 | (let ([x 40]) 2 | (+ x 2)) 3 | -------------------------------------------------------------------------------- /tests/s0_13.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s0_13.rkt -------------------------------------------------------------------------------- /tests/s0_14.in: -------------------------------------------------------------------------------- 1 | 0 2 | 0 3 | 4 | -------------------------------------------------------------------------------- /tests/s0_14.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s0_14.rkt -------------------------------------------------------------------------------- /tests/s0_15.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s0_15.in -------------------------------------------------------------------------------- /tests/s0_15.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s0_15.rkt -------------------------------------------------------------------------------- /tests/s0_16.rkt: -------------------------------------------------------------------------------- 1 | (+ (+ 30 10) 2) 2 | -------------------------------------------------------------------------------- /tests/s0_17.rkt: -------------------------------------------------------------------------------- 1 | (+ 10 32) 2 | -------------------------------------------------------------------------------- /tests/s0_18.rkt: -------------------------------------------------------------------------------- 1 | (+ 52 (- (+ 7 3))) 2 | -------------------------------------------------------------------------------- /tests/s0_19.rkt: -------------------------------------------------------------------------------- 1 | (+ 52 (- 10)) 2 | -------------------------------------------------------------------------------- /tests/s0_2.rkt: -------------------------------------------------------------------------------- 1 | (+ 32 10) 2 | -------------------------------------------------------------------------------- /tests/s0_20.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s0_20.rkt -------------------------------------------------------------------------------- /tests/s0_21.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s0_21.rkt -------------------------------------------------------------------------------- /tests/s0_22.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s0_22.rkt -------------------------------------------------------------------------------- /tests/s0_23.rkt: -------------------------------------------------------------------------------- 1 | (let ([x (+ (- 10) 11)]) 2 | (+ x 41)) -------------------------------------------------------------------------------- /tests/s0_24.res: -------------------------------------------------------------------------------- 1 | 47 -------------------------------------------------------------------------------- /tests/s0_24.rkt: -------------------------------------------------------------------------------- 1 | 47 2 | -------------------------------------------------------------------------------- /tests/s0_25.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s0_25.rkt -------------------------------------------------------------------------------- /tests/s0_26.in: -------------------------------------------------------------------------------- 1 | -52 -------------------------------------------------------------------------------- /tests/s0_26.rkt: -------------------------------------------------------------------------------- 1 | (- (+ (read) 10)) -------------------------------------------------------------------------------- /tests/s0_27.in: -------------------------------------------------------------------------------- 1 | 21 -------------------------------------------------------------------------------- /tests/s0_27.rkt: -------------------------------------------------------------------------------- 1 | (let ([x (read)]) (+ x x)) -------------------------------------------------------------------------------- /tests/s0_3.rkt: -------------------------------------------------------------------------------- 1 | (+ 47 (- 5)) 2 | -------------------------------------------------------------------------------- /tests/s0_4.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s0_4.rkt -------------------------------------------------------------------------------- /tests/s0_5.rkt: -------------------------------------------------------------------------------- 1 | (let ([x 41]) 2 | (+ x 1)) 3 | -------------------------------------------------------------------------------- /tests/s0_6.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s0_6.rkt -------------------------------------------------------------------------------- /tests/s0_7.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s0_7.rkt -------------------------------------------------------------------------------- /tests/s0_8.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s0_8.rkt -------------------------------------------------------------------------------- /tests/s0_9.in: -------------------------------------------------------------------------------- 1 | 42 -------------------------------------------------------------------------------- /tests/s0_9.rkt: -------------------------------------------------------------------------------- 1 | (read) 2 | -------------------------------------------------------------------------------- /tests/s1_1.rkt: -------------------------------------------------------------------------------- 1 | (let ([x #t]) 2 | 42) -------------------------------------------------------------------------------- /tests/s1_10.rkt: -------------------------------------------------------------------------------- 1 | (if (and #t #f) 777 42) -------------------------------------------------------------------------------- /tests/s1_11.rkt: -------------------------------------------------------------------------------- 1 | (if (not #f) 42 777) 2 | -------------------------------------------------------------------------------- /tests/s1_12.rkt: -------------------------------------------------------------------------------- 1 | (if (and #f #f) 777 42) -------------------------------------------------------------------------------- /tests/s1_13.rkt: -------------------------------------------------------------------------------- 1 | (if (and #t #t) 42 777) -------------------------------------------------------------------------------- /tests/s1_14.in: -------------------------------------------------------------------------------- 1 | 0 -------------------------------------------------------------------------------- /tests/s1_14.rkt: -------------------------------------------------------------------------------- 1 | (if (eq? (read) 0) 42 777) -------------------------------------------------------------------------------- /tests/s1_15.rkt: -------------------------------------------------------------------------------- 1 | (if (eq? 0 0) 42 777) -------------------------------------------------------------------------------- /tests/s1_16.in: -------------------------------------------------------------------------------- 1 | 0 2 | 42 3 | -------------------------------------------------------------------------------- /tests/s1_16.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s1_16.rkt -------------------------------------------------------------------------------- /tests/s1_17.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s1_17.rkt -------------------------------------------------------------------------------- /tests/s1_18.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s1_18.rkt -------------------------------------------------------------------------------- /tests/s1_19.in: -------------------------------------------------------------------------------- 1 | 1 2 | 0 3 | -------------------------------------------------------------------------------- /tests/s1_19.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s1_19.rkt -------------------------------------------------------------------------------- /tests/s1_2.rkt: -------------------------------------------------------------------------------- 1 | (let ([x #f]) 2 | 42) -------------------------------------------------------------------------------- /tests/s1_20.in: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /tests/s1_20.rkt: -------------------------------------------------------------------------------- 1 | (if (eq? (read) 1) 42 0) -------------------------------------------------------------------------------- /tests/s1_21.in: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /tests/s1_21.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s1_21.rkt -------------------------------------------------------------------------------- /tests/s1_22.rkt: -------------------------------------------------------------------------------- 1 | (if (let ([x #t]) x) 2 | 42 3 | 0) 4 | -------------------------------------------------------------------------------- /tests/s1_23.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s1_23.rkt -------------------------------------------------------------------------------- /tests/s1_24.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s1_24.rkt -------------------------------------------------------------------------------- /tests/s1_25.in: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /tests/s1_25.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s1_25.rkt -------------------------------------------------------------------------------- /tests/s1_26.rkt: -------------------------------------------------------------------------------- 1 | (if 1 2 3) 2 | -------------------------------------------------------------------------------- /tests/s1_26.tyerr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/s1_27.rkt: -------------------------------------------------------------------------------- 1 | (eq? #t 42) 2 | -------------------------------------------------------------------------------- /tests/s1_27.tyerr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/s1_28.rkt: -------------------------------------------------------------------------------- 1 | (not 20) 2 | -------------------------------------------------------------------------------- /tests/s1_28.tyerr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/s1_29.rkt: -------------------------------------------------------------------------------- 1 | (and #t 42) 2 | -------------------------------------------------------------------------------- /tests/s1_29.tyerr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/s1_3.rkt: -------------------------------------------------------------------------------- 1 | (if #t 42 0) -------------------------------------------------------------------------------- /tests/s1_30.res: -------------------------------------------------------------------------------- 1 | #t 2 | -------------------------------------------------------------------------------- /tests/s1_30.rkt: -------------------------------------------------------------------------------- 1 | #t 2 | -------------------------------------------------------------------------------- /tests/s1_31.rkt: -------------------------------------------------------------------------------- 1 | (if (eq? #f #f) 42 777) 2 | -------------------------------------------------------------------------------- /tests/s1_32.in: -------------------------------------------------------------------------------- 1 | 0 2 | 2 -------------------------------------------------------------------------------- /tests/s1_32.res: -------------------------------------------------------------------------------- 1 | 9 -------------------------------------------------------------------------------- /tests/s1_32.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s1_32.rkt -------------------------------------------------------------------------------- /tests/s1_33.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s1_33.rkt -------------------------------------------------------------------------------- /tests/s1_34.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s1_34.rkt -------------------------------------------------------------------------------- /tests/s1_35.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s1_35.rkt -------------------------------------------------------------------------------- /tests/s1_36.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s1_36.rkt -------------------------------------------------------------------------------- /tests/s1_4.rkt: -------------------------------------------------------------------------------- 1 | (if #f 0 42) -------------------------------------------------------------------------------- /tests/s1_5.in: -------------------------------------------------------------------------------- 1 | 1 2 | 1 3 | -------------------------------------------------------------------------------- /tests/s1_5.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s1_5.rkt -------------------------------------------------------------------------------- /tests/s1_6.in: -------------------------------------------------------------------------------- 1 | 0 2 | 0 3 | -------------------------------------------------------------------------------- /tests/s1_6.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s1_6.rkt -------------------------------------------------------------------------------- /tests/s1_7.in: -------------------------------------------------------------------------------- 1 | 2 2 | 2 3 | -------------------------------------------------------------------------------- /tests/s1_7.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s1_7.rkt -------------------------------------------------------------------------------- /tests/s1_8.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s1_8.rkt -------------------------------------------------------------------------------- /tests/s1_9.rkt: -------------------------------------------------------------------------------- 1 | (if (and #t #t) 42 777) 2 | -------------------------------------------------------------------------------- /tests/s2_1.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s2_1.rkt -------------------------------------------------------------------------------- /tests/s2_10.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s2_10.rkt -------------------------------------------------------------------------------- /tests/s2_11.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s2_11.rkt -------------------------------------------------------------------------------- /tests/s2_12.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s2_12.rkt -------------------------------------------------------------------------------- /tests/s2_13.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s2_13.rkt -------------------------------------------------------------------------------- /tests/s2_14.res: -------------------------------------------------------------------------------- 1 | #(42) -------------------------------------------------------------------------------- /tests/s2_14.rkt: -------------------------------------------------------------------------------- 1 | (vector 42) 2 | -------------------------------------------------------------------------------- /tests/s2_15.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s2_15.rkt -------------------------------------------------------------------------------- /tests/s2_16.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s2_16.res -------------------------------------------------------------------------------- /tests/s2_16.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s2_16.rkt -------------------------------------------------------------------------------- /tests/s2_17.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s2_17.rkt -------------------------------------------------------------------------------- /tests/s2_18.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s2_18.rkt -------------------------------------------------------------------------------- /tests/s2_19.res: -------------------------------------------------------------------------------- 1 | # -------------------------------------------------------------------------------- /tests/s2_19.rkt: -------------------------------------------------------------------------------- 1 | (void) -------------------------------------------------------------------------------- /tests/s2_2.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s2_2.rkt -------------------------------------------------------------------------------- /tests/s2_20.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s2_20.rkt -------------------------------------------------------------------------------- /tests/s2_3.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s2_3.rkt -------------------------------------------------------------------------------- /tests/s2_4.rkt: -------------------------------------------------------------------------------- 1 | (let ([v (vector 0)]) 2 | (if (eq? v v) 42 777)) -------------------------------------------------------------------------------- /tests/s2_5.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s2_5.rkt -------------------------------------------------------------------------------- /tests/s2_6.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s2_6.rkt -------------------------------------------------------------------------------- /tests/s2_7.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s2_7.rkt -------------------------------------------------------------------------------- /tests/s2_8.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s2_8.rkt -------------------------------------------------------------------------------- /tests/s2_9.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s2_9.rkt -------------------------------------------------------------------------------- /tests/s3_1.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s3_1.rkt -------------------------------------------------------------------------------- /tests/s3_10.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s3_10.rkt -------------------------------------------------------------------------------- /tests/s3_11.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s3_11.rkt -------------------------------------------------------------------------------- /tests/s3_12.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s3_12.rkt -------------------------------------------------------------------------------- /tests/s3_13.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s3_13.rkt -------------------------------------------------------------------------------- /tests/s3_14.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s3_14.rkt -------------------------------------------------------------------------------- /tests/s3_15.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s3_15.rkt -------------------------------------------------------------------------------- /tests/s3_16.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s3_16.rkt -------------------------------------------------------------------------------- /tests/s3_17.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s3_17.rkt -------------------------------------------------------------------------------- /tests/s3_18.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s3_18.rkt -------------------------------------------------------------------------------- /tests/s3_19.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s3_19.rkt -------------------------------------------------------------------------------- /tests/s3_2.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s3_2.rkt -------------------------------------------------------------------------------- /tests/s3_3.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s3_3.rkt -------------------------------------------------------------------------------- /tests/s3_4.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s3_4.rkt -------------------------------------------------------------------------------- /tests/s3_5.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s3_5.rkt -------------------------------------------------------------------------------- /tests/s3_6.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s3_6.rkt -------------------------------------------------------------------------------- /tests/s3_7.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s3_7.rkt -------------------------------------------------------------------------------- /tests/s3_8.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s3_8.rkt -------------------------------------------------------------------------------- /tests/s3_9.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s3_9.rkt -------------------------------------------------------------------------------- /tests/s4_0.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s4_0.rkt -------------------------------------------------------------------------------- /tests/s4_1.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s4_1.rkt -------------------------------------------------------------------------------- /tests/s4_2.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s4_2.rkt -------------------------------------------------------------------------------- /tests/s4_3.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s4_3.rkt -------------------------------------------------------------------------------- /tests/s4_4.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s4_4.rkt -------------------------------------------------------------------------------- /tests/s4_5.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s4_5.rkt -------------------------------------------------------------------------------- /tests/s4_6.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s4_6.rkt -------------------------------------------------------------------------------- /tests/s4_7.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s4_7.rkt -------------------------------------------------------------------------------- /tests/s6_0.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s6_0.rkt -------------------------------------------------------------------------------- /tests/s6_1.res: -------------------------------------------------------------------------------- 1 | #t -------------------------------------------------------------------------------- /tests/s6_1.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s6_1.rkt -------------------------------------------------------------------------------- /tests/s6_10.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s6_10.rkt -------------------------------------------------------------------------------- /tests/s6_2.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s6_2.rkt -------------------------------------------------------------------------------- /tests/s6_3.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s6_3.rkt -------------------------------------------------------------------------------- /tests/s6_4.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s6_4.rkt -------------------------------------------------------------------------------- /tests/s6_5.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s6_5.rkt -------------------------------------------------------------------------------- /tests/s6_6.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s6_6.rkt -------------------------------------------------------------------------------- /tests/s6_7.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s6_7.rkt -------------------------------------------------------------------------------- /tests/s6_8.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s6_8.rkt -------------------------------------------------------------------------------- /tests/s6_9.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s6_9.rkt -------------------------------------------------------------------------------- /tests/s7_0.rkt: -------------------------------------------------------------------------------- 1 | 42 2 | -------------------------------------------------------------------------------- /tests/s7_1.rkt: -------------------------------------------------------------------------------- 1 | ((lambda (x) x) 42) 2 | -------------------------------------------------------------------------------- /tests/s7_2.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s7_2.rkt -------------------------------------------------------------------------------- /tests/s7_3.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s7_3.rkt -------------------------------------------------------------------------------- /tests/s7_4.in: -------------------------------------------------------------------------------- 1 | 42 -------------------------------------------------------------------------------- /tests/s7_4.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s7_4.rkt -------------------------------------------------------------------------------- /tests/s7_5.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s7_5.rkt -------------------------------------------------------------------------------- /tests/s7_6.in: -------------------------------------------------------------------------------- 1 | 42 2 | -------------------------------------------------------------------------------- /tests/s7_6.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s7_6.rkt -------------------------------------------------------------------------------- /tests/s7_7.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s7_7.rkt -------------------------------------------------------------------------------- /tests/s7_8.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/s7_8.rkt -------------------------------------------------------------------------------- /tests/student-tests/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/README.md -------------------------------------------------------------------------------- /tests/student-tests/r1_1.rkt: -------------------------------------------------------------------------------- 1 | 42 2 | -------------------------------------------------------------------------------- /tests/student-tests/r1_10.in: -------------------------------------------------------------------------------- 1 | 45 2 | 3 -------------------------------------------------------------------------------- /tests/student-tests/r1_10.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r1_10.rkt -------------------------------------------------------------------------------- /tests/student-tests/r1_11.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r1_11.rkt -------------------------------------------------------------------------------- /tests/student-tests/r1_12.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r1_12.rkt -------------------------------------------------------------------------------- /tests/student-tests/r1_13.in: -------------------------------------------------------------------------------- 1 | 21 -------------------------------------------------------------------------------- /tests/student-tests/r1_13.rkt: -------------------------------------------------------------------------------- 1 | (let ([x (read)]) (+ x x)) 2 | -------------------------------------------------------------------------------- /tests/student-tests/r1_14.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r1_14.rkt -------------------------------------------------------------------------------- /tests/student-tests/r1_15.in: -------------------------------------------------------------------------------- 1 | 20 2 | 22 -------------------------------------------------------------------------------- /tests/student-tests/r1_15.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r1_15.rkt -------------------------------------------------------------------------------- /tests/student-tests/r1_16.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r1_16.rkt -------------------------------------------------------------------------------- /tests/student-tests/r1_17.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r1_17.rkt -------------------------------------------------------------------------------- /tests/student-tests/r1_18.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r1_18.rkt -------------------------------------------------------------------------------- /tests/student-tests/r1_19.in: -------------------------------------------------------------------------------- 1 | 20 2 | 62 -------------------------------------------------------------------------------- /tests/student-tests/r1_19.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r1_19.rkt -------------------------------------------------------------------------------- /tests/student-tests/r1_2.rkt: -------------------------------------------------------------------------------- 1 | (+ 20 22) 2 | -------------------------------------------------------------------------------- /tests/student-tests/r1_20.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r1_20.rkt -------------------------------------------------------------------------------- /tests/student-tests/r1_21.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r1_21.rkt -------------------------------------------------------------------------------- /tests/student-tests/r1_3.rkt: -------------------------------------------------------------------------------- 1 | (+ 47 (- 5)) 2 | -------------------------------------------------------------------------------- /tests/student-tests/r1_4.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r1_4.rkt -------------------------------------------------------------------------------- /tests/student-tests/r1_5.rkt: -------------------------------------------------------------------------------- 1 | (let ([x 41]) (+ x 1)) 2 | -------------------------------------------------------------------------------- /tests/student-tests/r1_6.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r1_6.rkt -------------------------------------------------------------------------------- /tests/student-tests/r1_7.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r1_7.rkt -------------------------------------------------------------------------------- /tests/student-tests/r1_8.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r1_8.rkt -------------------------------------------------------------------------------- /tests/student-tests/r1_9.in: -------------------------------------------------------------------------------- 1 | 42 -------------------------------------------------------------------------------- /tests/student-tests/r1_9.rkt: -------------------------------------------------------------------------------- 1 | (read) 2 | -------------------------------------------------------------------------------- /tests/student-tests/r1a_1.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r1a_1.rkt -------------------------------------------------------------------------------- /tests/student-tests/r1a_2.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r1a_2.rkt -------------------------------------------------------------------------------- /tests/student-tests/r1a_3.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r1a_3.rkt -------------------------------------------------------------------------------- /tests/student-tests/r1a_4.in: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /tests/student-tests/r1a_4.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r1a_4.rkt -------------------------------------------------------------------------------- /tests/student-tests/r1a_5.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r1a_5.in -------------------------------------------------------------------------------- /tests/student-tests/r1a_5.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r1a_5.rkt -------------------------------------------------------------------------------- /tests/student-tests/r1a_6.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r1a_6.in -------------------------------------------------------------------------------- /tests/student-tests/r1a_6.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r1a_6.rkt -------------------------------------------------------------------------------- /tests/student-tests/r1a_7.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r1a_7.rkt -------------------------------------------------------------------------------- /tests/student-tests/r1a_8.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r1a_8.rkt -------------------------------------------------------------------------------- /tests/student-tests/r2_1.rkt: -------------------------------------------------------------------------------- 1 | (let ([x #t]) 2 | 42) 3 | -------------------------------------------------------------------------------- /tests/student-tests/r2_10.rkt: -------------------------------------------------------------------------------- 1 | (if (eq? #f #f) 42 777) 2 | -------------------------------------------------------------------------------- /tests/student-tests/r2_11.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r2_11.rkt -------------------------------------------------------------------------------- /tests/student-tests/r2_12.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r2_12.rkt -------------------------------------------------------------------------------- /tests/student-tests/r2_13.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r2_13.rkt -------------------------------------------------------------------------------- /tests/student-tests/r2_14.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r2_14.rkt -------------------------------------------------------------------------------- /tests/student-tests/r2_14.tyerr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r2_14.tyerr -------------------------------------------------------------------------------- /tests/student-tests/r2_15.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r2_15.rkt -------------------------------------------------------------------------------- /tests/student-tests/r2_16.rkt: -------------------------------------------------------------------------------- 1 | (if (and #t #t) 42 777) 2 | -------------------------------------------------------------------------------- /tests/student-tests/r2_17.rkt: -------------------------------------------------------------------------------- 1 | (if (and 1 #t) 42 777) 2 | -------------------------------------------------------------------------------- /tests/student-tests/r2_17.tyerr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/student-tests/r2_18.rkt: -------------------------------------------------------------------------------- 1 | (if (and #f (eq? #t 1)) 42 777) 2 | -------------------------------------------------------------------------------- /tests/student-tests/r2_18.tyerr: -------------------------------------------------------------------------------- 1 | (if (and #f (eq? #t 1)) 42 777) 2 | -------------------------------------------------------------------------------- /tests/student-tests/r2_19.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r2_19.rkt -------------------------------------------------------------------------------- /tests/student-tests/r2_2.rkt: -------------------------------------------------------------------------------- 1 | (let ([x #f]) 2 | 42) 3 | -------------------------------------------------------------------------------- /tests/student-tests/r2_20.rkt: -------------------------------------------------------------------------------- 1 | (if (read) 1 2) 2 | -------------------------------------------------------------------------------- /tests/student-tests/r2_20.tyerr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/student-tests/r2_21.rkt: -------------------------------------------------------------------------------- 1 | (+ #t 1) 2 | -------------------------------------------------------------------------------- /tests/student-tests/r2_21.tyerr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/student-tests/r2_22.rkt: -------------------------------------------------------------------------------- 1 | (if (- #t) 1 2) 2 | -------------------------------------------------------------------------------- /tests/student-tests/r2_22.tyerr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/student-tests/r2_23.rkt: -------------------------------------------------------------------------------- 1 | (not 42) 2 | -------------------------------------------------------------------------------- /tests/student-tests/r2_23.tyerr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/student-tests/r2_3.rkt: -------------------------------------------------------------------------------- 1 | (if #t 42 0) 2 | -------------------------------------------------------------------------------- /tests/student-tests/r2_4.rkt: -------------------------------------------------------------------------------- 1 | (if 1 2 3) 2 | -------------------------------------------------------------------------------- /tests/student-tests/r2_4.tyerr: -------------------------------------------------------------------------------- 1 | (if 1 2 3) 2 | -------------------------------------------------------------------------------- /tests/student-tests/r2_5.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r2_5.rkt -------------------------------------------------------------------------------- /tests/student-tests/r2_5.tyerr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r2_5.tyerr -------------------------------------------------------------------------------- /tests/student-tests/r2_6.rkt: -------------------------------------------------------------------------------- 1 | (if (eq? 1 2) 777 42) 2 | -------------------------------------------------------------------------------- /tests/student-tests/r2_7.rkt: -------------------------------------------------------------------------------- 1 | (if (eq? #t 1) 42 777) 2 | -------------------------------------------------------------------------------- /tests/student-tests/r2_7.tyerr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/student-tests/r2_8.rkt: -------------------------------------------------------------------------------- 1 | (if (not 1) 777 42) 2 | -------------------------------------------------------------------------------- /tests/student-tests/r2_8.tyerr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/student-tests/r2_9.rkt: -------------------------------------------------------------------------------- 1 | (if (eq? 1 1) 42 777) 2 | -------------------------------------------------------------------------------- /tests/student-tests/r3_1.rkt: -------------------------------------------------------------------------------- 1 | (let ([v (vector 1 2)]) 2 | 42) 3 | -------------------------------------------------------------------------------- /tests/student-tests/r3_10.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r3_10.rkt -------------------------------------------------------------------------------- /tests/student-tests/r3_10.tyerr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/student-tests/r3_11.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r3_11.rkt -------------------------------------------------------------------------------- /tests/student-tests/r3_12.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r3_12.rkt -------------------------------------------------------------------------------- /tests/student-tests/r3_13.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r3_13.rkt -------------------------------------------------------------------------------- /tests/student-tests/r3_14.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r3_14.rkt -------------------------------------------------------------------------------- /tests/student-tests/r3_15.in: -------------------------------------------------------------------------------- 1 | 0 -------------------------------------------------------------------------------- /tests/student-tests/r3_15.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r3_15.rkt -------------------------------------------------------------------------------- /tests/student-tests/r3_2.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r3_2.rkt -------------------------------------------------------------------------------- /tests/student-tests/r3_3.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r3_3.rkt -------------------------------------------------------------------------------- /tests/student-tests/r3_3.tyerr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r3_3.tyerr -------------------------------------------------------------------------------- /tests/student-tests/r3_4.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r3_4.rkt -------------------------------------------------------------------------------- /tests/student-tests/r3_5.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r3_5.rkt -------------------------------------------------------------------------------- /tests/student-tests/r3_6.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r3_6.rkt -------------------------------------------------------------------------------- /tests/student-tests/r3_6.tyerr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/student-tests/r3_7.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r3_7.rkt -------------------------------------------------------------------------------- /tests/student-tests/r3_8.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r3_8.rkt -------------------------------------------------------------------------------- /tests/student-tests/r3_9.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r3_9.rkt -------------------------------------------------------------------------------- /tests/student-tests/r3_9.tyerr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/student-tests/r4_1.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r4_1.rkt -------------------------------------------------------------------------------- /tests/student-tests/r4_10.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r4_10.rkt -------------------------------------------------------------------------------- /tests/student-tests/r4_11.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r4_11.rkt -------------------------------------------------------------------------------- /tests/student-tests/r4_12.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r4_12.rkt -------------------------------------------------------------------------------- /tests/student-tests/r4_13.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r4_13.rkt -------------------------------------------------------------------------------- /tests/student-tests/r4_14.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r4_14.rkt -------------------------------------------------------------------------------- /tests/student-tests/r4_14.tyerr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/student-tests/r4_15.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r4_15.rkt -------------------------------------------------------------------------------- /tests/student-tests/r4_15.tyerr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/student-tests/r4_16.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r4_16.rkt -------------------------------------------------------------------------------- /tests/student-tests/r4_16.tyerr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/student-tests/r4_17.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r4_17.rkt -------------------------------------------------------------------------------- /tests/student-tests/r4_18.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r4_18.rkt -------------------------------------------------------------------------------- /tests/student-tests/r4_19.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r4_19.rkt -------------------------------------------------------------------------------- /tests/student-tests/r4_2.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r4_2.rkt -------------------------------------------------------------------------------- /tests/student-tests/r4_2.tyerr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/student-tests/r4_3.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r4_3.rkt -------------------------------------------------------------------------------- /tests/student-tests/r4_3.tyerr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/student-tests/r4_4.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r4_4.rkt -------------------------------------------------------------------------------- /tests/student-tests/r4_5.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r4_5.rkt -------------------------------------------------------------------------------- /tests/student-tests/r4_6.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r4_6.rkt -------------------------------------------------------------------------------- /tests/student-tests/r4_7.in: -------------------------------------------------------------------------------- 1 | 21 -------------------------------------------------------------------------------- /tests/student-tests/r4_7.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r4_7.rkt -------------------------------------------------------------------------------- /tests/student-tests/r4_8.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r4_8.rkt -------------------------------------------------------------------------------- /tests/student-tests/r4_9.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r4_9.rkt -------------------------------------------------------------------------------- /tests/student-tests/r5_1.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r5_1.rkt -------------------------------------------------------------------------------- /tests/student-tests/r5_10.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r5_10.rkt -------------------------------------------------------------------------------- /tests/student-tests/r5_11.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r5_11.rkt -------------------------------------------------------------------------------- /tests/student-tests/r5_11.rkt.tyerr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/student-tests/r5_11.tyerr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/student-tests/r5_12.in: -------------------------------------------------------------------------------- 1 | 1 -------------------------------------------------------------------------------- /tests/student-tests/r5_12.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r5_12.rkt -------------------------------------------------------------------------------- /tests/student-tests/r5_2.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r5_2.rkt -------------------------------------------------------------------------------- /tests/student-tests/r5_3.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r5_3.rkt -------------------------------------------------------------------------------- /tests/student-tests/r5_4.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r5_4.rkt -------------------------------------------------------------------------------- /tests/student-tests/r5_5.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r5_5.rkt -------------------------------------------------------------------------------- /tests/student-tests/r5_6.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r5_6.rkt -------------------------------------------------------------------------------- /tests/student-tests/r5_7.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r5_7.rkt -------------------------------------------------------------------------------- /tests/student-tests/r5_7.tyerr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/student-tests/r5_8.rkt: -------------------------------------------------------------------------------- 1 | ((lambda: ([z : Integer]) : Boolean #f) 42 60) 2 | -------------------------------------------------------------------------------- /tests/student-tests/r5_8.tyerr: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/student-tests/r5_9.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/tests/student-tests/r5_9.rkt -------------------------------------------------------------------------------- /uncover-types.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/uncover-types.rkt -------------------------------------------------------------------------------- /utilities.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/utilities.rkt -------------------------------------------------------------------------------- /vectors.rkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seckcoder/course-compiler/HEAD/vectors.rkt --------------------------------------------------------------------------------