Installation
Install LOVE-LANG from source, set up your editor, and get the build tools running.
Installation
Section titled “Installation”LOVE-LANG is built with Gleam and compiles via the Gleam toolchain.
Prerequisites
Section titled “Prerequisites”Before installing LOVE-LANG, ensure you have:
- Gleam
>= 1.0.0— gleam.run/getting-started/ - Erlang/OTP
>= 26or Node.js>= 20(for Gleam’s JavaScript target) - Git for cloning the repository
Install from Source
Section titled “Install from Source”-
Clone the repository
Terminal window git clone https://github.com/love-metalang/love-langcd love-lang/love -
Install dependencies
Terminal window gleam deps download -
Build the project
Terminal window gleam build -
Run the tests
Terminal window gleam test -
Install globally (optional)
Terminal window gleam run -- install
Building the Core
Section titled “Building the Core”cd love/coregleam build --target erlanggleam runcd love/coregleam build --target javascriptnode build/dev/javascript/love/main.mjsVS Code Extension
Section titled “VS Code Extension”LOVE-LANG has a dedicated VS Code extension (vscode-love) that provides:
- Syntax highlighting for
.love,.love.toml, and.ednfiles - Bracket level coloring (L1–L5)
- IntelliSense for built-in keywords
- REPL integration
Install from Source
Section titled “Install from Source”cd vscode-lovenpm installnpm run compile# Then: Ctrl+Shift+P → "Developer: Install Extension from Location"Project Structure
Section titled “Project Structure”After installing, you’ll find:
love-metalang/├── love/ # Core language implementation (Gleam)│ ├── core/ # Main evaluator│ ├── compiler/ # Compilation pipeline│ ├── examples/ # Example .love programmes│ └── docs/ # Language specifications├── vscode-love/ # VS Code extension├── std/ # Standard library└── web/ # This documentation siteConfiguration
Section titled “Configuration”LOVE-LANG uses gleam.toml for project configuration:
name = "my-love-project"version = "1.0.0"
description = "A project built with LOVE"licences = ["MIT"]
[dependencies]gleam_stdlib = ">= 0.44.0 and < 2.0.0"
[dev-dependencies]gleeunit = ">= 1.0.0 and < 2.0.0"