Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

vurvdev/ExpressionScript

Repository files navigation

ExpressionScript Release Shield License Linter Badge github/Vurv78

A language heavily derived from Expression2.
This was originally created to be a template to rewrite E2 for S&box, however at this point I don't really care about S&box nor am I interested in C#.

All credit and ownership of Expression2 goes to the wireteam & wiremod.

Compiler

The compiler currently hasn't been finished. Most of the work has been done on the Transpiler for now.

Transpiler

This project allows you to convert ExpressionScript code to any language, as long as a transpiler is provided.
By default a Lua transpiler is provided and more may come.

Differences

No normal

Normal is a type that came before number, however nobody uses it and it just complicates things.

No inputs

For obvious reasons, there's no io or entities in this as this is meant to be run in the browser, or simply on your pc.

Optimized

The language is optimized for speed. E2 was known to be very slow, and this is no longer the case through typing and other optimizations.
*Although, admittedly Haxe is nowhere near the best language for trying to get something to be fast.

General State

Here's a general status of each part of the language.

Name Status Desc
Preprocessor 🚧 Unfinished
Tokenizer ✔️ Tokenizer should be completely finished. Some operators and grammar might be missing that I'm unaware of.
Parser 🚧🏗️ It is nearly done, however some things like #include are missing, and some statements/expressions might be buggy.
Optimizer Hasn't been started and there are no plans for this yet.
Compiler 🚧 Unfinished.
Transpiler 🚧🏗️ Unfinished.
Tests 🚧 Unfinished.

Running Tests

Tests are using the utest library.
Use haxe test.hxml to run them.