simonsejse / FastoLangCompiler

FastoLangCompiler is a open-source compiler for the FASTO language written in F#, developed as part of the "Implementation of Programming Languages" course at DIKU, University of Copenhagen, in 2024.
2 stars 0 forks source link

Compiler errors when running test script #1

Open simonsejse opened 4 months ago

simonsejse commented 4 months ago

When running $ ./bin/runtests.sh we get:

simonsejse@DESKTOP-JG31MTS:/mnt/c/Users/simon/dev/GitHub/FastoLangCompiler$ ./bin/runtests.sh 

=== Running Fasto test programs (compiled) ===

Testing      fail_division.fo:  Compiled but should result in compile error.
Testing      inline_shadow.fo:  Output for inline_shadow does not match expected output.
Compare ./bin/../tests/inline_shadow.out-testresult and ./bin/../tests/inline_shadow.out.
Execution error.
Testing         logicalNot.fo:  Compiled but should result in compile error.
Testing           negation.fo:  Compiled but should result in compile error.
simonsejse commented 4 months ago

I just realised there is way more...

=== Running Fasto test programs (compiled) ===
Testing    fail_logicalAnd.fo:  Success (compile error).
Testing    fail_logicalNot.fo:  Success (compile error).
Testing     fail_logicalOr.fo:  Success (compile error).
Testing      fail_negation.fo:  Success (compile error).
Testing         fail_parse.fo:  Success (compile error).
Testing      inline_shadow.fo:  Output for inline_shadow does not match expected output.
Compare ./bin/../tests/inline_shadow.out-testresult and ./bin/../tests/inline_shadow.out.
Execution error.
Testing               jass.fo:  Success (compile error).
Testing         logicalNot.fo:  Compiled but should result in compile error.
Testing         neg_simple.fo:  Success (compile error).
Testing           negation.fo:  Compiled but should result in compile error.

This is currently all.

simonsejse commented 4 months ago

@Victorschimmell @SqushiLoL if you want to fix any of these issues you are more than welcome

simonsejse commented 4 months ago

@Victorschimmell @SqushiLoL if you want to fix any of these issues you are more than welcome

simonsejse commented 4 months ago

Most of the tests are fixed, some deleted. We still need many more tests cf. GH-3.

 === Running Fasto test programs (compiled) ===

Testing            assign2.fo:  Success.
Testing      comprehension.fo:  Parse error: Error at line 8, column 18
Compilation error.
Testing copyConstPropFold0.fo:  Success.
Testing copyConstPropFold1.fo:  Success.
Testing       dead_bnd_rem.fo:  Success.
Testing           division.fo:  Success.
Testing      fail_division.fo:  Success.
Testing         fail_parse.fo:  Success (compile error).
Testing                fib.fo:  Success.
Testing    filter-on-2darr.fo:  Success.
Testing             filter.fo:  Success.
Testing         inline_map.fo:  Success.
Testing      inline_shadow.fo:  Output for inline_shadow does not match expected output.
Compare ./bin/../tests/inline_shadow.out-testresult and ./bin/../tests/inline_shadow.out.
Execution error.
Testing            io_mssp.fo:  Success.
Testing               iota.fo:  Success.
Testing             lambda.fo:  Success.
Testing         logicalAnd.fo:  Success.
Testing         logicalNot.fo:  Success.
Testing          logicalOr.fo:  Success.
Testing         map_red_io.fo:  Success.
Testing           multilet.fo:  Success.
Testing     multiplication.fo:  Success.
Testing         neg_simple.fo:  Success (compile error).
Testing             negate.fo:  Success.
Testing           negation.fo:  Success.
Testing             ordchr.fo:  Success.
Testing       proj_figure3.fo:  Success.
Testing             reduce.fo:  Success.
Testing          replicate.fo:  Success.
Testing      replicate_2nd.fo:  Success.
Testing               scan.fo:  Success.
Testing      short_circuit.fo:  Success.

Still some fails to be fixed. The comprehension.fo is the bonus task (part 4).