Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Installation

Calque uses the que command and .que source files. The compiler is installed separately from the WASI runtime that executes compiled programs. wasmtime is the default runtime; wasmer and iwasm/WAMR also work.

Compiler and bundled library

macOS and Linux

The installer downloads the latest release for the current architecture and installs que in /usr/local/bin and the bundled library in /usr/local/share/que. It may ask for your sudo password.

curl -fsSL https://raw.githubusercontent.com/AT-290690/que-script/main/scripts/install.sh | bash

Install a compatible WASI runtime separately and ensure it is on PATH. Then verify the installation:

que --help
wasmtime --version

Windows

Run this in PowerShell. It installs the latest que.exe and que-lib.lisp under %LOCALAPPDATA%\\Programs\\Que and adds its bin directory to your user PATH; administrator rights are not needed.

irm https://raw.githubusercontent.com/AT-290690/que-script/main/scripts/install.ps1 | iex

Restart PowerShell after the installer finishes, then install a compatible WASI runtime separately (normally Wasmtime) and ensure it is on PATH:

que --help
wasmtime --version

For one invocation, choose a runtime other than the default:

que hello.que --runtime wasmer
que hello.que --runtime /path/to/iwasm

Language server and editors

quelsp is a separate executable. It provides diagnostics, type hovers, completion, signatures, formatting integration, and project-aware navigation. It does not need a WASI runtime merely to serve an editor.

macOS and Linux

curl -fsSL https://raw.githubusercontent.com/AT-290690/que-script/main/scripts/lsp.sh | bash
quelsp --help

Windows

Run this in PowerShell after the compiler installation:

irm https://raw.githubusercontent.com/AT-290690/que-script/main/scripts/lsp.ps1 | iex

Restart PowerShell if necessary, then check it:

quelsp --help

The VS Code extension uses quelsp from PATH by default. To choose a specific executable, set que.languageServer.path to its full path. The included Neovim and Emacs integrations also look for quelsp on PATH.

Emacs

Emacs 29.1+ is supported through the built-in Eglot client. The mode supplies Calque syntax highlighting, indentation, formatting, run commands, and Eglot diagnostics, inferred-type hover, completion, signatures, and definitions.

curl -fsSL https://raw.githubusercontent.com/AT-290690/que-script/main/scripts/install-emacs.sh | bash

Then add the printed load-path and (require 'que-mode) forms to your Emacs init file. The installer does not rewrite an existing init file. See miscs/emacs/README.md for configuration and command bindings.

For the managed Neovim workstation on a fresh Linux machine—Calque, quelsp, Wasmtime, Neovim, Telescope, Catppuccin, and the Calque setup—use:

curl -fsSL https://raw.githubusercontent.com/AT-290690/que-script/main/scripts/install-all-linux.sh | bash

See Projects, tests, and editors for Neovim commands, VS Code configuration, and project behavior.