Setup

Installation

Simple!

/bin/bash -c "$(curl -fsSL https://seq-lang.org/install.sh)"

If you want to use Python interop, you also need to point SEQ_PYTHON to the Python library (typically called libpython3.9m.so or similar). The Seq repository contains a Python script that will identify and print the path to this library.

Usage

Assuming that Seq was properly installed, you can use it as follows:

seqc run foo.seq  # Compile and run foo.seq
seqc run -release foo.seq  # Compile and run foo.seq with optimizations
seqc build -exe file.seq  # Compile foo.seq to executable "foo"

Note that the -exe option requires clang to be installed, and the LIBRARY_PATH environment variable to point to the Seq runtime library (installed by default at ~/.seq/lib/seq).