Build from source

The entire FakeScript compiler lives in a single Go source file (fksc.go) using only the Go standard library. Clone the repository and compile it for your platform:

Windows (PowerShell)

git clone https://github.com/ChaiMaii/fakescript.git
cd fakescript
go build -o fksc.exe fksc.go
.\fksc.exe run examples\showcase.fks

Linux / Debian / macOS

git clone https://github.com/ChaiMaii/fakescript.git
cd fakescript
go build -o fksc fksc.go
./fksc run examples/showcase.fks

CLI commands

fksc build program.fks    # Compile to a standalone native binary
fksc run program.fks      # Compile and run immediately
fksc emit program.fks     # Print formatted Go source code
fksc check program.fks    # Lex, parse, and type-check only
fksc version              # Print compiler version

Ready to learn the language? Head over to the FakeScript Documentation.