CAP/MiniC/README-interpreter.md
2024-10-08 08:39:14 +02:00

1.0 KiB

MiniC interpreter and typer

LAB3, MIF08 / CAP / CS444 2022-23

Authors

TODO: YOUR NAME HERE

Contents

TODO for STUDENTS : Say a bit about the code infrastructure ...

Howto

make test-interpret TEST_FILES='TP03/tests/provided/examples/test_print_int.c' for a single run

make test to test all the files in */tests/* according to EXPECTED results.

You can select the files you want to test by using make test TEST_FILES='TP03/**/*bad*.c' (** means "any number of possibly nested directories").

Test design

TODO: explain your tests. Do not repeat what test files already contain, just give the main objectives of the tests.

Design choices

TODO: explain your choices - explain the limitations of your implementation.

Known bugs

  • On a division by zero, the interpreter prints "Division by 0" message and returns 1. This differs from certain versions of GCC. The test is therefore skipped. TODO: document any known bug and limitations. Did you do everything asked for? Did you implement an extension?