Main repository for the source code of the Flix compiler and run-time.
See the official Flix website for more information.
You are most welcome to report bugs or request features on this GitHub page.
Please include information such as the Flix version and JVM version you are using.
Flix can be built with the Scala Simple Build Tool (SBT). Ensure SBT is installed and on your path.
The available tasks are:
compile
: compiles all sources files.clean
: cleans all build files.run
: runs Flix (with no input).test
: runs all test cases.
Flix can be built with Apache Ant. Ensure that Ant is installed and on your path.
The available Ant targets are:
build-all
: alias forbuild-src, build-jar
.build-src
: compiles all source files.build-jar
: builds theflix.jar
file.clean
: cleans all build files.rebuild
: alias forclean, build-all
.main
: runs Flix (with no input).test
: runs all test cases.
The recommended way to checkout and build Flix is with the commands:
git clone https://github.com/flix/flix.git
cd flix
ant build-all
ant main
ant test
Flix can be built from within the IntelliJ IDEA IDE.
- Clone the Flix GitHub repository.
- Create a fresh project on top of the cloned directory.
- Ensure that
main/src
is marked as a source directory. - Ensure that
main/test
is marked as a test directory. - Ensure that every jar in
lib
is added as a library (right-click, "Add as library ...") - Open
main/src/ca/uwaterloo/flix/Main.scala
and right-click ondef main
and selectRun 'Main'