├── .dockerignore ├── .github └── workflows │ └── tests.yml ├── .gitignore ├── CHANGELOG.md ├── Dockerfile.game ├── LICENSE ├── Makefile ├── README.md ├── checker.sh ├── compile_flags.txt ├── examples ├── coin │ ├── client.cl │ ├── message.cl │ └── server.cl ├── compiler │ ├── compiler.cl │ ├── lexer.cl │ └── parser.cl ├── gol.cl ├── hello.cl ├── movement.cl ├── raylib.cl ├── rule110.cl ├── snake.cl ├── sockets.cl ├── spaceship └── threading.cl ├── flake.lock ├── flake.nix ├── include ├── assembler.h ├── codegen.h ├── ds.h ├── lexer.h ├── parser.h ├── semantic.h └── util.h ├── lib ├── README.md ├── allocator │ ├── allocator.asm │ └── flags.txt ├── data │ ├── array.cl │ ├── flags.txt │ ├── list.cl │ └── optional.cl ├── depends.txt ├── mallocator │ ├── flags.txt │ └── mallocator.asm ├── net │ ├── flags.txt │ ├── http.cl │ └── net.cl ├── prelude │ ├── flags.txt │ ├── linux.asm │ ├── linux.cl │ ├── prelude.asm │ └── prelude.cl ├── random │ ├── flags.txt │ ├── random.asm │ └── random.cl ├── raylib │ ├── flags.txt │ ├── raylib.asm │ └── raylib.cl └── threading │ ├── flags.txt │ ├── threading.asm │ └── threading.cl ├── src ├── assembler │ └── assembler.c ├── codegen │ ├── codegen.c │ └── print_tac.c ├── ds.c ├── lexer │ ├── display.c │ └── lexer.c ├── main.c ├── parser │ ├── parser.c │ └── print_ast.c ├── semantic │ └── semantic.c └── util │ ├── args.c │ ├── depends.c │ ├── io.c │ └── util.c └── tests ├── asm ├── 01-hello.cl ├── 01-hello.ref ├── 02-class.cl ├── 02-class.ref ├── 03-math.cl ├── 03-math.ref ├── 04-arith.cl ├── 04-arith.ref ├── 05-cond.cl ├── 05-cond.ref ├── 06-while.cl ├── 06-while.ref ├── 07-let.cl ├── 07-let.ref ├── 08-method.cl ├── 08-method.ref ├── 09-case.cl ├── 09-case.ref ├── 10-new.cl ├── 10-new.ref ├── 11-isvoid.cl ├── 11-isvoid.ref ├── 12-simple-eq.cl ├── 12-simple-eq.ref ├── 13-base.cl ├── 13-base.ref ├── 14-prelude.cl ├── 14-prelude.ref ├── 15-oop.cl ├── 15-oop.ref ├── 16-case-more.cl ├── 16-case-more.ref ├── 17-case-example.cl ├── 17-case-example.ref ├── 18-equals.cl ├── 18-equals.ref ├── 19-concat.cl ├── 19-concat.ref ├── 20-substr.cl └── 20-substr.ref ├── lexer ├── 01-class.cl ├── 01-class.ref ├── 02-attribute-no-init.cl ├── 02-attribute-no-init.ref ├── 03-attribute-init.cl ├── 03-attribute-init.ref ├── 04-method.cl ├── 04-method.ref ├── 05-literal-id.cl ├── 05-literal-id.ref ├── 06-arithmetic.cl ├── 06-arithmetic.ref ├── 07-relational.cl ├── 07-relational.ref ├── 08-assignment.cl ├── 08-assignment.ref ├── 09-new-isvoid.cl ├── 09-new-isvoid.ref ├── 10-dispatch.cl ├── 10-dispatch.ref ├── 11-if.cl ├── 11-if.ref ├── 12-while.cl ├── 12-while.ref ├── 13-let.cl ├── 13-let.ref ├── 14-case.cl ├── 14-case.ref ├── 15-block.cl ├── 15-block.ref ├── 16-string-special-chars.cl ├── 16-string-special-chars.ref ├── 17-big.cl ├── 17-big.ref ├── 18-error-string.cl ├── 18-error-string.ref ├── 19-error-comment.cl ├── 19-error-comment.ref ├── 20-error-invalid-character.cl └── 20-error-invalid-character.ref ├── lib ├── 01-num.cl ├── 01-num.flags ├── 01-num.ref ├── 02-ref.cl ├── 02-ref.flags └── 02-ref.ref ├── parser ├── 01-class.cl ├── 01-class.ref ├── 02-attribute-no-init.cl ├── 02-attribute-no-init.ref ├── 03-attribute-init.cl ├── 03-attribute-init.ref ├── 04-method.cl ├── 04-method.ref ├── 05-literal-id.cl ├── 05-literal-id.ref ├── 06-arithmetic.cl ├── 06-arithmetic.ref ├── 07-relational.cl ├── 07-relational.ref ├── 08-assignment.cl ├── 08-assignment.ref ├── 09-new-isvoid.cl ├── 09-new-isvoid.ref ├── 10-dispatch.cl ├── 10-dispatch.ref ├── 11-if.cl ├── 11-if.ref ├── 12-while.cl ├── 12-while.ref ├── 13-let.cl ├── 13-let.ref ├── 14-case.cl ├── 14-case.ref ├── 15-block.cl ├── 15-block.ref ├── 16-string-special-chars.cl ├── 16-string-special-chars.ref ├── 17-big.cl ├── 17-big.ref ├── 18-error-string.cl ├── 18-error-string.ref ├── 19-error-comment.cl ├── 19-error-comment.ref ├── 20-error-invalid-character.cl └── 20-error-invalid-character.ref ├── semantic ├── 01-define-class.cl ├── 01-define-class.ref ├── 02-define-attribute.cl ├── 02-define-attribute.ref ├── 03-define-method.cl ├── 03-define-method.ref ├── 04-define-let.cl ├── 04-define-let.ref ├── 05-define-case.cl ├── 05-define-case.ref ├── 06-resolve-id.cl ├── 06-resolve-id.ref ├── 07-type-arithmetic.cl ├── 07-type-arithmetic.ref ├── 08-type-relational.cl ├── 08-type-relational.ref ├── 09-type-assignment.cl ├── 09-type-assignment.ref ├── 10-type-new-isvoid.cl ├── 10-type-new-isvoid.ref ├── 11-type-while.cl ├── 11-type-while.ref ├── 12-type-if.cl ├── 12-type-if.ref ├── 13-type-case.cl ├── 13-type-case.ref ├── 14-type-block.cl ├── 14-type-block.ref ├── 15-type-let.cl ├── 15-type-let.ref ├── 16-type-attr.cl ├── 16-type-attr.ref ├── 17-type-method.cl ├── 17-type-method.ref ├── 18-type-dispatch.cl ├── 18-type-dispatch.ref ├── 19-self_type.cl ├── 19-self_type.ref ├── 20-basic-classes.cl └── 20-basic-classes.ref ├── semantic2 ├── 01-define-class.cl ├── 01-define-class.ref ├── 02-define-attribute.cl ├── 02-define-attribute.ref ├── 03-define-method.cl ├── 03-define-method.ref ├── 04-define-let.cl ├── 04-define-let.ref ├── 05-define-case.cl ├── 05-define-case.ref ├── 06-resolve-id.cl ├── 06-resolve-id.ref ├── 07-type-arithmetic.cl ├── 07-type-arithmetic.ref ├── 08-type-relational.cl ├── 08-type-relational.ref ├── 09-type-assignment.cl ├── 09-type-assignment.ref ├── 10-type-new-isvoid.cl ├── 10-type-new-isvoid.ref ├── 11-type-while.cl ├── 11-type-while.ref ├── 12-type-if.cl ├── 12-type-if.ref ├── 13-type-case.cl ├── 13-type-case.ref ├── 14-type-block.cl ├── 14-type-block.ref ├── 15-type-let.cl ├── 15-type-let.ref ├── 16-type-attr.cl ├── 16-type-attr.ref ├── 17-type-method.cl ├── 17-type-method.ref ├── 18-type-dispatch.cl ├── 18-type-dispatch.ref ├── 19-self_type.cl ├── 19-self_type.ref ├── 20-basic-classes.cl └── 20-basic-classes.ref └── tac ├── 01-tac-ident.cl ├── 01-tac-ident.ref ├── 02-tac-int.cl ├── 02-tac-int.ref ├── 03-tac-add.cl ├── 03-tac-add.ref ├── 04-tac-literals.cl ├── 04-tac-literals.ref ├── 05-tac-math.cl ├── 05-tac-math.ref ├── 06-tac-rel.cl ├── 06-tac-rel.ref ├── 07-tac-paren.cl ├── 07-tac-paren.ref ├── 08-tac-new-isvoid.cl ├── 08-tac-new-isvoid.ref ├── 09-tac-assign.cl ├── 09-tac-assign.ref ├── 10-tac-block.cl ├── 10-tac-block.ref ├── 11-tac-let.cl ├── 11-tac-let.ref ├── 12-tac-dispatch.cl ├── 12-tac-dispatch.ref ├── 13-tac-if.cl ├── 13-tac-if.ref ├── 14-tac-while.cl ├── 14-tac-while.ref ├── 15-tac-case.cl └── 15-tac-case.ref /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/.dockerignore -------------------------------------------------------------------------------- /.github/workflows/tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/.github/workflows/tests.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Dockerfile.game: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/Dockerfile.game -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/README.md -------------------------------------------------------------------------------- /checker.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/checker.sh -------------------------------------------------------------------------------- /compile_flags.txt: -------------------------------------------------------------------------------- 1 | -Iinclude 2 | -------------------------------------------------------------------------------- /examples/coin/client.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/examples/coin/client.cl -------------------------------------------------------------------------------- /examples/coin/message.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/examples/coin/message.cl -------------------------------------------------------------------------------- /examples/coin/server.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/examples/coin/server.cl -------------------------------------------------------------------------------- /examples/compiler/compiler.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/examples/compiler/compiler.cl -------------------------------------------------------------------------------- /examples/compiler/lexer.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/examples/compiler/lexer.cl -------------------------------------------------------------------------------- /examples/compiler/parser.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/examples/compiler/parser.cl -------------------------------------------------------------------------------- /examples/gol.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/examples/gol.cl -------------------------------------------------------------------------------- /examples/hello.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/examples/hello.cl -------------------------------------------------------------------------------- /examples/movement.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/examples/movement.cl -------------------------------------------------------------------------------- /examples/raylib.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/examples/raylib.cl -------------------------------------------------------------------------------- /examples/rule110.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/examples/rule110.cl -------------------------------------------------------------------------------- /examples/snake.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/examples/snake.cl -------------------------------------------------------------------------------- /examples/sockets.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/examples/sockets.cl -------------------------------------------------------------------------------- /examples/spaceship: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/examples/spaceship -------------------------------------------------------------------------------- /examples/threading.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/examples/threading.cl -------------------------------------------------------------------------------- /flake.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/flake.lock -------------------------------------------------------------------------------- /flake.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/flake.nix -------------------------------------------------------------------------------- /include/assembler.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/include/assembler.h -------------------------------------------------------------------------------- /include/codegen.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/include/codegen.h -------------------------------------------------------------------------------- /include/ds.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/include/ds.h -------------------------------------------------------------------------------- /include/lexer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/include/lexer.h -------------------------------------------------------------------------------- /include/parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/include/parser.h -------------------------------------------------------------------------------- /include/semantic.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/include/semantic.h -------------------------------------------------------------------------------- /include/util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/include/util.h -------------------------------------------------------------------------------- /lib/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/lib/README.md -------------------------------------------------------------------------------- /lib/allocator/allocator.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/lib/allocator/allocator.asm -------------------------------------------------------------------------------- /lib/allocator/flags.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/data/array.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/lib/data/array.cl -------------------------------------------------------------------------------- /lib/data/flags.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/data/list.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/lib/data/list.cl -------------------------------------------------------------------------------- /lib/data/optional.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/lib/data/optional.cl -------------------------------------------------------------------------------- /lib/depends.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/lib/depends.txt -------------------------------------------------------------------------------- /lib/mallocator/flags.txt: -------------------------------------------------------------------------------- 1 | -lc 2 | -------------------------------------------------------------------------------- /lib/mallocator/mallocator.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/lib/mallocator/mallocator.asm -------------------------------------------------------------------------------- /lib/net/flags.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/net/http.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/lib/net/http.cl -------------------------------------------------------------------------------- /lib/net/net.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/lib/net/net.cl -------------------------------------------------------------------------------- /lib/prelude/flags.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/prelude/linux.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/lib/prelude/linux.asm -------------------------------------------------------------------------------- /lib/prelude/linux.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/lib/prelude/linux.cl -------------------------------------------------------------------------------- /lib/prelude/prelude.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/lib/prelude/prelude.asm -------------------------------------------------------------------------------- /lib/prelude/prelude.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/lib/prelude/prelude.cl -------------------------------------------------------------------------------- /lib/random/flags.txt: -------------------------------------------------------------------------------- 1 | -lc 2 | -------------------------------------------------------------------------------- /lib/random/random.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/lib/random/random.asm -------------------------------------------------------------------------------- /lib/random/random.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/lib/random/random.cl -------------------------------------------------------------------------------- /lib/raylib/flags.txt: -------------------------------------------------------------------------------- 1 | -lraylib 2 | -lm 3 | -lc 4 | -------------------------------------------------------------------------------- /lib/raylib/raylib.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/lib/raylib/raylib.asm -------------------------------------------------------------------------------- /lib/raylib/raylib.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/lib/raylib/raylib.cl -------------------------------------------------------------------------------- /lib/threading/flags.txt: -------------------------------------------------------------------------------- 1 | -lpthread 2 | -lc 3 | -------------------------------------------------------------------------------- /lib/threading/threading.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/lib/threading/threading.asm -------------------------------------------------------------------------------- /lib/threading/threading.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/lib/threading/threading.cl -------------------------------------------------------------------------------- /src/assembler/assembler.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/src/assembler/assembler.c -------------------------------------------------------------------------------- /src/codegen/codegen.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/src/codegen/codegen.c -------------------------------------------------------------------------------- /src/codegen/print_tac.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/src/codegen/print_tac.c -------------------------------------------------------------------------------- /src/ds.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/src/ds.c -------------------------------------------------------------------------------- /src/lexer/display.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/src/lexer/display.c -------------------------------------------------------------------------------- /src/lexer/lexer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/src/lexer/lexer.c -------------------------------------------------------------------------------- /src/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/src/main.c -------------------------------------------------------------------------------- /src/parser/parser.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/src/parser/parser.c -------------------------------------------------------------------------------- /src/parser/print_ast.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/src/parser/print_ast.c -------------------------------------------------------------------------------- /src/semantic/semantic.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/src/semantic/semantic.c -------------------------------------------------------------------------------- /src/util/args.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/src/util/args.c -------------------------------------------------------------------------------- /src/util/depends.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/src/util/depends.c -------------------------------------------------------------------------------- /src/util/io.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/src/util/io.c -------------------------------------------------------------------------------- /src/util/util.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/src/util/util.c -------------------------------------------------------------------------------- /tests/asm/01-hello.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/asm/01-hello.cl -------------------------------------------------------------------------------- /tests/asm/01-hello.ref: -------------------------------------------------------------------------------- 1 | Hello, world 2 | -------------------------------------------------------------------------------- /tests/asm/02-class.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/asm/02-class.cl -------------------------------------------------------------------------------- /tests/asm/02-class.ref: -------------------------------------------------------------------------------- 1 | Hello, world 2 | -------------------------------------------------------------------------------- /tests/asm/03-math.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/asm/03-math.cl -------------------------------------------------------------------------------- /tests/asm/03-math.ref: -------------------------------------------------------------------------------- 1 | 69 2 | -------------------------------------------------------------------------------- /tests/asm/04-arith.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/asm/04-arith.cl -------------------------------------------------------------------------------- /tests/asm/04-arith.ref: -------------------------------------------------------------------------------- 1 | 69 2 | -------------------------------------------------------------------------------- /tests/asm/05-cond.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/asm/05-cond.cl -------------------------------------------------------------------------------- /tests/asm/05-cond.ref: -------------------------------------------------------------------------------- 1 | x < y 2 | -------------------------------------------------------------------------------- /tests/asm/06-while.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/asm/06-while.cl -------------------------------------------------------------------------------- /tests/asm/06-while.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/asm/06-while.ref -------------------------------------------------------------------------------- /tests/asm/07-let.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/asm/07-let.cl -------------------------------------------------------------------------------- /tests/asm/07-let.ref: -------------------------------------------------------------------------------- 1 | 15 2 | -------------------------------------------------------------------------------- /tests/asm/08-method.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/asm/08-method.cl -------------------------------------------------------------------------------- /tests/asm/08-method.ref: -------------------------------------------------------------------------------- 1 | 50 2 | -------------------------------------------------------------------------------- /tests/asm/09-case.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/asm/09-case.cl -------------------------------------------------------------------------------- /tests/asm/09-case.ref: -------------------------------------------------------------------------------- 1 | 15 2 | 1 3 | 0 4 | -------------------------------------------------------------------------------- /tests/asm/10-new.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/asm/10-new.cl -------------------------------------------------------------------------------- /tests/asm/10-new.ref: -------------------------------------------------------------------------------- 1 | 4 9 2 | -------------------------------------------------------------------------------- /tests/asm/11-isvoid.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/asm/11-isvoid.cl -------------------------------------------------------------------------------- /tests/asm/11-isvoid.ref: -------------------------------------------------------------------------------- 1 | a is void 2 | -------------------------------------------------------------------------------- /tests/asm/12-simple-eq.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/asm/12-simple-eq.cl -------------------------------------------------------------------------------- /tests/asm/12-simple-eq.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/asm/12-simple-eq.ref -------------------------------------------------------------------------------- /tests/asm/13-base.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/asm/13-base.cl -------------------------------------------------------------------------------- /tests/asm/13-base.ref: -------------------------------------------------------------------------------- 1 | A 2 | A 3 | -------------------------------------------------------------------------------- /tests/asm/14-prelude.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/asm/14-prelude.cl -------------------------------------------------------------------------------- /tests/asm/14-prelude.ref: -------------------------------------------------------------------------------- 1 | 1 < 10 and a < b 2 | -------------------------------------------------------------------------------- /tests/asm/15-oop.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/asm/15-oop.cl -------------------------------------------------------------------------------- /tests/asm/15-oop.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/asm/15-oop.ref -------------------------------------------------------------------------------- /tests/asm/16-case-more.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/asm/16-case-more.cl -------------------------------------------------------------------------------- /tests/asm/16-case-more.ref: -------------------------------------------------------------------------------- 1 | 15 2 | 1 3 | 0 4 | 2 5 | 3 6 | -------------------------------------------------------------------------------- /tests/asm/17-case-example.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/asm/17-case-example.cl -------------------------------------------------------------------------------- /tests/asm/17-case-example.ref: -------------------------------------------------------------------------------- 1 | 3 2 | 2 3 | -------------------------------------------------------------------------------- /tests/asm/18-equals.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/asm/18-equals.cl -------------------------------------------------------------------------------- /tests/asm/18-equals.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/asm/18-equals.ref -------------------------------------------------------------------------------- /tests/asm/19-concat.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/asm/19-concat.cl -------------------------------------------------------------------------------- /tests/asm/19-concat.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/asm/19-concat.ref -------------------------------------------------------------------------------- /tests/asm/20-substr.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/asm/20-substr.cl -------------------------------------------------------------------------------- /tests/asm/20-substr.ref: -------------------------------------------------------------------------------- 1 | Hello 2 | World 3 | -------------------------------------------------------------------------------- /tests/lexer/01-class.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/01-class.cl -------------------------------------------------------------------------------- /tests/lexer/01-class.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/01-class.ref -------------------------------------------------------------------------------- /tests/lexer/02-attribute-no-init.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/02-attribute-no-init.cl -------------------------------------------------------------------------------- /tests/lexer/02-attribute-no-init.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/02-attribute-no-init.ref -------------------------------------------------------------------------------- /tests/lexer/03-attribute-init.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/03-attribute-init.cl -------------------------------------------------------------------------------- /tests/lexer/03-attribute-init.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/03-attribute-init.ref -------------------------------------------------------------------------------- /tests/lexer/04-method.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/04-method.cl -------------------------------------------------------------------------------- /tests/lexer/04-method.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/04-method.ref -------------------------------------------------------------------------------- /tests/lexer/05-literal-id.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/05-literal-id.cl -------------------------------------------------------------------------------- /tests/lexer/05-literal-id.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/05-literal-id.ref -------------------------------------------------------------------------------- /tests/lexer/06-arithmetic.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/06-arithmetic.cl -------------------------------------------------------------------------------- /tests/lexer/06-arithmetic.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/06-arithmetic.ref -------------------------------------------------------------------------------- /tests/lexer/07-relational.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/07-relational.cl -------------------------------------------------------------------------------- /tests/lexer/07-relational.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/07-relational.ref -------------------------------------------------------------------------------- /tests/lexer/08-assignment.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/08-assignment.cl -------------------------------------------------------------------------------- /tests/lexer/08-assignment.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/08-assignment.ref -------------------------------------------------------------------------------- /tests/lexer/09-new-isvoid.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/09-new-isvoid.cl -------------------------------------------------------------------------------- /tests/lexer/09-new-isvoid.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/09-new-isvoid.ref -------------------------------------------------------------------------------- /tests/lexer/10-dispatch.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/10-dispatch.cl -------------------------------------------------------------------------------- /tests/lexer/10-dispatch.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/10-dispatch.ref -------------------------------------------------------------------------------- /tests/lexer/11-if.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/11-if.cl -------------------------------------------------------------------------------- /tests/lexer/11-if.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/11-if.ref -------------------------------------------------------------------------------- /tests/lexer/12-while.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/12-while.cl -------------------------------------------------------------------------------- /tests/lexer/12-while.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/12-while.ref -------------------------------------------------------------------------------- /tests/lexer/13-let.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/13-let.cl -------------------------------------------------------------------------------- /tests/lexer/13-let.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/13-let.ref -------------------------------------------------------------------------------- /tests/lexer/14-case.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/14-case.cl -------------------------------------------------------------------------------- /tests/lexer/14-case.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/14-case.ref -------------------------------------------------------------------------------- /tests/lexer/15-block.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/15-block.cl -------------------------------------------------------------------------------- /tests/lexer/15-block.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/15-block.ref -------------------------------------------------------------------------------- /tests/lexer/16-string-special-chars.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/16-string-special-chars.cl -------------------------------------------------------------------------------- /tests/lexer/16-string-special-chars.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/16-string-special-chars.ref -------------------------------------------------------------------------------- /tests/lexer/17-big.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/17-big.cl -------------------------------------------------------------------------------- /tests/lexer/17-big.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/17-big.ref -------------------------------------------------------------------------------- /tests/lexer/18-error-string.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/18-error-string.cl -------------------------------------------------------------------------------- /tests/lexer/18-error-string.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/18-error-string.ref -------------------------------------------------------------------------------- /tests/lexer/19-error-comment.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/19-error-comment.cl -------------------------------------------------------------------------------- /tests/lexer/19-error-comment.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/19-error-comment.ref -------------------------------------------------------------------------------- /tests/lexer/20-error-invalid-character.cl: -------------------------------------------------------------------------------- 1 | class A { 2 | x : Int; # 3 | }; -------------------------------------------------------------------------------- /tests/lexer/20-error-invalid-character.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lexer/20-error-invalid-character.ref -------------------------------------------------------------------------------- /tests/lib/01-num.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lib/01-num.cl -------------------------------------------------------------------------------- /tests/lib/01-num.flags: -------------------------------------------------------------------------------- 1 | --module prelude 2 | -------------------------------------------------------------------------------- /tests/lib/01-num.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lib/01-num.ref -------------------------------------------------------------------------------- /tests/lib/02-ref.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/lib/02-ref.cl -------------------------------------------------------------------------------- /tests/lib/02-ref.flags: -------------------------------------------------------------------------------- 1 | --module prelude 2 | -------------------------------------------------------------------------------- /tests/lib/02-ref.ref: -------------------------------------------------------------------------------- 1 | 3 2 | -------------------------------------------------------------------------------- /tests/parser/01-class.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/01-class.cl -------------------------------------------------------------------------------- /tests/parser/01-class.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/01-class.ref -------------------------------------------------------------------------------- /tests/parser/02-attribute-no-init.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/02-attribute-no-init.cl -------------------------------------------------------------------------------- /tests/parser/02-attribute-no-init.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/02-attribute-no-init.ref -------------------------------------------------------------------------------- /tests/parser/03-attribute-init.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/03-attribute-init.cl -------------------------------------------------------------------------------- /tests/parser/03-attribute-init.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/03-attribute-init.ref -------------------------------------------------------------------------------- /tests/parser/04-method.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/04-method.cl -------------------------------------------------------------------------------- /tests/parser/04-method.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/04-method.ref -------------------------------------------------------------------------------- /tests/parser/05-literal-id.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/05-literal-id.cl -------------------------------------------------------------------------------- /tests/parser/05-literal-id.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/05-literal-id.ref -------------------------------------------------------------------------------- /tests/parser/06-arithmetic.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/06-arithmetic.cl -------------------------------------------------------------------------------- /tests/parser/06-arithmetic.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/06-arithmetic.ref -------------------------------------------------------------------------------- /tests/parser/07-relational.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/07-relational.cl -------------------------------------------------------------------------------- /tests/parser/07-relational.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/07-relational.ref -------------------------------------------------------------------------------- /tests/parser/08-assignment.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/08-assignment.cl -------------------------------------------------------------------------------- /tests/parser/08-assignment.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/08-assignment.ref -------------------------------------------------------------------------------- /tests/parser/09-new-isvoid.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/09-new-isvoid.cl -------------------------------------------------------------------------------- /tests/parser/09-new-isvoid.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/09-new-isvoid.ref -------------------------------------------------------------------------------- /tests/parser/10-dispatch.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/10-dispatch.cl -------------------------------------------------------------------------------- /tests/parser/10-dispatch.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/10-dispatch.ref -------------------------------------------------------------------------------- /tests/parser/11-if.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/11-if.cl -------------------------------------------------------------------------------- /tests/parser/11-if.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/11-if.ref -------------------------------------------------------------------------------- /tests/parser/12-while.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/12-while.cl -------------------------------------------------------------------------------- /tests/parser/12-while.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/12-while.ref -------------------------------------------------------------------------------- /tests/parser/13-let.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/13-let.cl -------------------------------------------------------------------------------- /tests/parser/13-let.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/13-let.ref -------------------------------------------------------------------------------- /tests/parser/14-case.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/14-case.cl -------------------------------------------------------------------------------- /tests/parser/14-case.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/14-case.ref -------------------------------------------------------------------------------- /tests/parser/15-block.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/15-block.cl -------------------------------------------------------------------------------- /tests/parser/15-block.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/15-block.ref -------------------------------------------------------------------------------- /tests/parser/16-string-special-chars.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/16-string-special-chars.cl -------------------------------------------------------------------------------- /tests/parser/16-string-special-chars.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/16-string-special-chars.ref -------------------------------------------------------------------------------- /tests/parser/17-big.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/17-big.cl -------------------------------------------------------------------------------- /tests/parser/17-big.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/17-big.ref -------------------------------------------------------------------------------- /tests/parser/18-error-string.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/18-error-string.cl -------------------------------------------------------------------------------- /tests/parser/18-error-string.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/18-error-string.ref -------------------------------------------------------------------------------- /tests/parser/19-error-comment.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/19-error-comment.cl -------------------------------------------------------------------------------- /tests/parser/19-error-comment.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/19-error-comment.ref -------------------------------------------------------------------------------- /tests/parser/20-error-invalid-character.cl: -------------------------------------------------------------------------------- 1 | class A { 2 | x : Int; # 3 | }; -------------------------------------------------------------------------------- /tests/parser/20-error-invalid-character.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/parser/20-error-invalid-character.ref -------------------------------------------------------------------------------- /tests/semantic/01-define-class.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/01-define-class.cl -------------------------------------------------------------------------------- /tests/semantic/01-define-class.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/01-define-class.ref -------------------------------------------------------------------------------- /tests/semantic/02-define-attribute.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/02-define-attribute.cl -------------------------------------------------------------------------------- /tests/semantic/02-define-attribute.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/02-define-attribute.ref -------------------------------------------------------------------------------- /tests/semantic/03-define-method.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/03-define-method.cl -------------------------------------------------------------------------------- /tests/semantic/03-define-method.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/03-define-method.ref -------------------------------------------------------------------------------- /tests/semantic/04-define-let.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/04-define-let.cl -------------------------------------------------------------------------------- /tests/semantic/04-define-let.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/04-define-let.ref -------------------------------------------------------------------------------- /tests/semantic/05-define-case.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/05-define-case.cl -------------------------------------------------------------------------------- /tests/semantic/05-define-case.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/05-define-case.ref -------------------------------------------------------------------------------- /tests/semantic/06-resolve-id.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/06-resolve-id.cl -------------------------------------------------------------------------------- /tests/semantic/06-resolve-id.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/06-resolve-id.ref -------------------------------------------------------------------------------- /tests/semantic/07-type-arithmetic.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/07-type-arithmetic.cl -------------------------------------------------------------------------------- /tests/semantic/07-type-arithmetic.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/07-type-arithmetic.ref -------------------------------------------------------------------------------- /tests/semantic/08-type-relational.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/08-type-relational.cl -------------------------------------------------------------------------------- /tests/semantic/08-type-relational.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/08-type-relational.ref -------------------------------------------------------------------------------- /tests/semantic/09-type-assignment.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/09-type-assignment.cl -------------------------------------------------------------------------------- /tests/semantic/09-type-assignment.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/09-type-assignment.ref -------------------------------------------------------------------------------- /tests/semantic/10-type-new-isvoid.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/10-type-new-isvoid.cl -------------------------------------------------------------------------------- /tests/semantic/10-type-new-isvoid.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/10-type-new-isvoid.ref -------------------------------------------------------------------------------- /tests/semantic/11-type-while.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/11-type-while.cl -------------------------------------------------------------------------------- /tests/semantic/11-type-while.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/11-type-while.ref -------------------------------------------------------------------------------- /tests/semantic/12-type-if.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/12-type-if.cl -------------------------------------------------------------------------------- /tests/semantic/12-type-if.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/12-type-if.ref -------------------------------------------------------------------------------- /tests/semantic/13-type-case.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/13-type-case.cl -------------------------------------------------------------------------------- /tests/semantic/13-type-case.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/13-type-case.ref -------------------------------------------------------------------------------- /tests/semantic/14-type-block.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/14-type-block.cl -------------------------------------------------------------------------------- /tests/semantic/14-type-block.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/14-type-block.ref -------------------------------------------------------------------------------- /tests/semantic/15-type-let.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/15-type-let.cl -------------------------------------------------------------------------------- /tests/semantic/15-type-let.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/15-type-let.ref -------------------------------------------------------------------------------- /tests/semantic/16-type-attr.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/16-type-attr.cl -------------------------------------------------------------------------------- /tests/semantic/16-type-attr.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/16-type-attr.ref -------------------------------------------------------------------------------- /tests/semantic/17-type-method.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/17-type-method.cl -------------------------------------------------------------------------------- /tests/semantic/17-type-method.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/17-type-method.ref -------------------------------------------------------------------------------- /tests/semantic/18-type-dispatch.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/18-type-dispatch.cl -------------------------------------------------------------------------------- /tests/semantic/18-type-dispatch.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/18-type-dispatch.ref -------------------------------------------------------------------------------- /tests/semantic/19-self_type.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/19-self_type.cl -------------------------------------------------------------------------------- /tests/semantic/19-self_type.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/19-self_type.ref -------------------------------------------------------------------------------- /tests/semantic/20-basic-classes.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/20-basic-classes.cl -------------------------------------------------------------------------------- /tests/semantic/20-basic-classes.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic/20-basic-classes.ref -------------------------------------------------------------------------------- /tests/semantic2/01-define-class.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/01-define-class.cl -------------------------------------------------------------------------------- /tests/semantic2/01-define-class.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/01-define-class.ref -------------------------------------------------------------------------------- /tests/semantic2/02-define-attribute.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/02-define-attribute.cl -------------------------------------------------------------------------------- /tests/semantic2/02-define-attribute.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/02-define-attribute.ref -------------------------------------------------------------------------------- /tests/semantic2/03-define-method.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/03-define-method.cl -------------------------------------------------------------------------------- /tests/semantic2/03-define-method.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/03-define-method.ref -------------------------------------------------------------------------------- /tests/semantic2/04-define-let.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/04-define-let.cl -------------------------------------------------------------------------------- /tests/semantic2/04-define-let.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/04-define-let.ref -------------------------------------------------------------------------------- /tests/semantic2/05-define-case.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/05-define-case.cl -------------------------------------------------------------------------------- /tests/semantic2/05-define-case.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/05-define-case.ref -------------------------------------------------------------------------------- /tests/semantic2/06-resolve-id.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/06-resolve-id.cl -------------------------------------------------------------------------------- /tests/semantic2/06-resolve-id.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/06-resolve-id.ref -------------------------------------------------------------------------------- /tests/semantic2/07-type-arithmetic.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/07-type-arithmetic.cl -------------------------------------------------------------------------------- /tests/semantic2/07-type-arithmetic.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/07-type-arithmetic.ref -------------------------------------------------------------------------------- /tests/semantic2/08-type-relational.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/08-type-relational.cl -------------------------------------------------------------------------------- /tests/semantic2/08-type-relational.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/08-type-relational.ref -------------------------------------------------------------------------------- /tests/semantic2/09-type-assignment.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/09-type-assignment.cl -------------------------------------------------------------------------------- /tests/semantic2/09-type-assignment.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/09-type-assignment.ref -------------------------------------------------------------------------------- /tests/semantic2/10-type-new-isvoid.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/10-type-new-isvoid.cl -------------------------------------------------------------------------------- /tests/semantic2/10-type-new-isvoid.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/10-type-new-isvoid.ref -------------------------------------------------------------------------------- /tests/semantic2/11-type-while.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/11-type-while.cl -------------------------------------------------------------------------------- /tests/semantic2/11-type-while.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/11-type-while.ref -------------------------------------------------------------------------------- /tests/semantic2/12-type-if.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/12-type-if.cl -------------------------------------------------------------------------------- /tests/semantic2/12-type-if.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/12-type-if.ref -------------------------------------------------------------------------------- /tests/semantic2/13-type-case.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/13-type-case.cl -------------------------------------------------------------------------------- /tests/semantic2/13-type-case.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/13-type-case.ref -------------------------------------------------------------------------------- /tests/semantic2/14-type-block.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/14-type-block.cl -------------------------------------------------------------------------------- /tests/semantic2/14-type-block.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/14-type-block.ref -------------------------------------------------------------------------------- /tests/semantic2/15-type-let.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/15-type-let.cl -------------------------------------------------------------------------------- /tests/semantic2/15-type-let.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/15-type-let.ref -------------------------------------------------------------------------------- /tests/semantic2/16-type-attr.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/16-type-attr.cl -------------------------------------------------------------------------------- /tests/semantic2/16-type-attr.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/16-type-attr.ref -------------------------------------------------------------------------------- /tests/semantic2/17-type-method.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/17-type-method.cl -------------------------------------------------------------------------------- /tests/semantic2/17-type-method.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/17-type-method.ref -------------------------------------------------------------------------------- /tests/semantic2/18-type-dispatch.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/18-type-dispatch.cl -------------------------------------------------------------------------------- /tests/semantic2/18-type-dispatch.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/18-type-dispatch.ref -------------------------------------------------------------------------------- /tests/semantic2/19-self_type.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/19-self_type.cl -------------------------------------------------------------------------------- /tests/semantic2/19-self_type.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/19-self_type.ref -------------------------------------------------------------------------------- /tests/semantic2/20-basic-classes.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/20-basic-classes.cl -------------------------------------------------------------------------------- /tests/semantic2/20-basic-classes.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/semantic2/20-basic-classes.ref -------------------------------------------------------------------------------- /tests/tac/01-tac-ident.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/01-tac-ident.cl -------------------------------------------------------------------------------- /tests/tac/01-tac-ident.ref: -------------------------------------------------------------------------------- 1 | A.f 2 | x 3 | -------------------------------------------------------------------------------- /tests/tac/02-tac-int.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/02-tac-int.cl -------------------------------------------------------------------------------- /tests/tac/02-tac-int.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/02-tac-int.ref -------------------------------------------------------------------------------- /tests/tac/03-tac-add.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/03-tac-add.cl -------------------------------------------------------------------------------- /tests/tac/03-tac-add.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/03-tac-add.ref -------------------------------------------------------------------------------- /tests/tac/04-tac-literals.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/04-tac-literals.cl -------------------------------------------------------------------------------- /tests/tac/04-tac-literals.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/04-tac-literals.ref -------------------------------------------------------------------------------- /tests/tac/05-tac-math.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/05-tac-math.cl -------------------------------------------------------------------------------- /tests/tac/05-tac-math.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/05-tac-math.ref -------------------------------------------------------------------------------- /tests/tac/06-tac-rel.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/06-tac-rel.cl -------------------------------------------------------------------------------- /tests/tac/06-tac-rel.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/06-tac-rel.ref -------------------------------------------------------------------------------- /tests/tac/07-tac-paren.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/07-tac-paren.cl -------------------------------------------------------------------------------- /tests/tac/07-tac-paren.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/07-tac-paren.ref -------------------------------------------------------------------------------- /tests/tac/08-tac-new-isvoid.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/08-tac-new-isvoid.cl -------------------------------------------------------------------------------- /tests/tac/08-tac-new-isvoid.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/08-tac-new-isvoid.ref -------------------------------------------------------------------------------- /tests/tac/09-tac-assign.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/09-tac-assign.cl -------------------------------------------------------------------------------- /tests/tac/09-tac-assign.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/09-tac-assign.ref -------------------------------------------------------------------------------- /tests/tac/10-tac-block.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/10-tac-block.cl -------------------------------------------------------------------------------- /tests/tac/10-tac-block.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/10-tac-block.ref -------------------------------------------------------------------------------- /tests/tac/11-tac-let.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/11-tac-let.cl -------------------------------------------------------------------------------- /tests/tac/11-tac-let.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/11-tac-let.ref -------------------------------------------------------------------------------- /tests/tac/12-tac-dispatch.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/12-tac-dispatch.cl -------------------------------------------------------------------------------- /tests/tac/12-tac-dispatch.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/12-tac-dispatch.ref -------------------------------------------------------------------------------- /tests/tac/13-tac-if.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/13-tac-if.cl -------------------------------------------------------------------------------- /tests/tac/13-tac-if.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/13-tac-if.ref -------------------------------------------------------------------------------- /tests/tac/14-tac-while.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/14-tac-while.cl -------------------------------------------------------------------------------- /tests/tac/14-tac-while.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/14-tac-while.ref -------------------------------------------------------------------------------- /tests/tac/15-tac-case.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/15-tac-case.cl -------------------------------------------------------------------------------- /tests/tac/15-tac-case.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexjercan/cool-compiler/HEAD/tests/tac/15-tac-case.ref --------------------------------------------------------------------------------