This commit is contained in:
NikolajDanger
2022-04-30 16:18:13 +02:00
parent 2465cf84b7
commit b9ef4bb00e
174 changed files with 20605 additions and 100 deletions

22
W1/fasto/README.txt Normal file
View File

@ -0,0 +1,22 @@
# The Fasto Compiler (v1.0, 2022-04-27)
This is the compiler for the Fasto programming language. The source
code resides in the `Fasto` directory.
Note that you need the .NET 6.0 SDK (*not* a Mono-based F#) installed
on your machine, with the `dotnet` executable in your search path.
Additionally, you should have `bash` to execute the various test
scripts, and the Java Runtime Environment (full SDK not needed) to run
the MARS simulator.
To build the compiler, run `make` (or just `dotnet build Fasto`).
To interpret, compile, or optimize a Fasto program, run `bin/fasto.sh`.
To execute a compiled program (in MIPS assembly), run `bin/mars.sh`.
To compile and immediately execute a Fasto program, run `bin/compilerun.sh`.
To run all tests from the `tests` directory (or some other), run
`bin/runtests.sh`. Use `-i` to run in interpreted mode, and `-o` to
turn on the optimizations in the compiler.