Skip to main content
Any Framework

Command-line tool and compiler / REPL for the MAGES language.

Published
Oct 29, 2026
13d ago
Total Downloads
1.2K
1,235

Install

dotnet add package Mages.Compiler --version 4.0.0-alpha-104

No framework information available.

README

MAGES Compiler

MAGES (Mages: Another Generalized Expression Simplifier) is a lightweight, ultra-fast expression parser, compiler, and interpreter for .NET.

This package is the cross-platform command-line application: it provides the mages command, which runs MAGES scripts and offers an interactive REPL. If you want to embed MAGES into your own application, use the Mages library instead.

Installation

dotnet tool install --global Mages.Compiler

Updating to a newer release:

dotnet tool update --global Mages.Compiler

The tool requires the .NET 10 runtime.

Usage

Start the interactive REPL:

mages

Run a script file:

mages path/to/script.ms

Walk through the built-in interactive tutorial:

mages --tutorial

In the REPL

SWM> 2 + 3
5
SWM> var f = (x, y) => x^2 + y
SWM> f(3, 1)
10
SWM> ans * 2
20

The REPL comes with multi-line editing, history, and tab auto-completion. Results of the previous evaluation are available in the ans variable, and help() lists the available functions.

Besides the standard library the tool ships with plugins for file system access, linear algebra, plotting, drawing, random numbers, transpilers, and a module system exposing import / export - the latter can even load .NET assemblies and NuGet packages.

Documentation

License

MIT - see the license file for details.

Changes from Previous Version

No structural changes between v4.0.0-alpha-101 and v4.0.0-alpha-104.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

This version is marked prerelease. Validate its API and upgrade path before production use.No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.