An interpreter for the basic Lutin script programming language.
You can specify several options to the program. All options are usable together.
-p
prints the parsed program-a
realizes a static analysis of the programm to detect semantic errors.-o
optimizes the program-e
executes the program
make
creates the Objects/ folder, where all the .o files are compiled to, and creates alut
executable at the same level as the Makefilemake clean
deletes the Objects/ directory and the generatedlut
executable.make remake
cleans and makes the projectmake test
compiles the project and launches the tests (in the Tests/ folder)make coverage
compiles the project, launches the tests, processes the generated coverage data and displays them in firefox if installed
We use the GNU test coverage gcov
, with the commands lcov
and genhtml
.
The file coverage.sh
(in folder Tests/) :
- Compiles the project, and creates .gcno files in Objects/
- Sets
GCOV_PREFIX
andGCOV_PREFIX_STRIPS
a coverage folder in the Objects/. - Launches all tests and creates .gcda files
- Process the information with
lcov
(based on the .gcda files) genhtml
generates a nice html, with css, to see the results
Now you just have to open Objects/cov_html/index.html
and you see a beautiful interface for test coverage.