Canonical Code-Fixers WurstScript compiler fork; upstream plus reviewed TeveR compiletime SQLite support
  • Java 83.3%
  • HTML 9.6%
  • Lua 5.7%
  • TypeScript 0.5%
  • ANTLR 0.4%
  • Other 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Donach's Bot 84720f6a2c
All checks were successful
CI (build & test) / Gradle test (nixos) (pull_request) Successful in 3m43s
CI (build & test) / Gradle test (nixos) (push) Successful in 37s
fix(compiletime): preserve partitionCompiletimeStateInitFunction only when functionSplitLimit is explicit on Lua
2026-10-03 11:37:53 +02:00
.forgejo/workflows ci: run the compiler tests on the nixos runner 2026-10-01 10:49:53 +02:00
.github Keep Lua class field lifetime semantics aligned with Jass (#1276) 2026-08-31 14:45:35 +02:00
de.peeeq.wurstscript fix(compiletime): preserve partitionCompiletimeStateInitFunction only when functionSplitLimit is explicit on Lua 2026-10-03 11:37:53 +02:00
HelperScripts Lua backend & knowledge base fixes + nullsafe sugar (#1201) 2026-07-16 10:47:18 +02:00
Wurstpack Override objmods (#1190) 2026-05-31 12:28:36 +02:00
.gitattributes another linguist try 2017-12-09 20:34:02 +01:00
.gitignore Sanitise Lua method names where they are assigned (#1230) 2026-08-16 09:21:48 +02:00
AGENTS.md Interpreter: common.j constants are no longer null in the Jass run (#1320) 2026-09-28 11:19:50 +02:00
BACKLOG.md Write down the natively keyed store design before building it (#1255) 2026-09-28 08:25:20 +02:00
CHANGELOG.md Make a dispatch slot name arrive as data instead of being recovered from another name (#1253) 2026-08-17 23:37:04 +02:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md (#690) 2018-07-19 23:10:19 +02:00
CONTRIBUTING.md Update CONTRIBUTING.md 2021-07-22 22:38:23 +02:00
flake.lock ci: run the compiler tests on the nixos runner 2026-10-01 10:49:53 +02:00
flake.nix ci: run the compiler tests on the nixos runner 2026-10-01 10:49:53 +02:00
LICENSE apache license file 2013-11-07 23:52:54 +01:00
LUA_HOT_PATH_SPEC.md Lua code emission updates (#1287) 2026-09-04 12:52:51 +02:00
NATIVE_KEYED_STORE_DESIGN.md Write down the natively keyed store design before building it (#1255) 2026-09-28 08:25:20 +02:00
README.markdown Minor changes (#1184) 2026-04-24 14:54:31 +02:00

WurstScript

Wurstscript is a delicious programming language which compiles to Jass or Lua code that is used to power WarCraft III maps.

Build GitHub issues GitHub pull requests Coverage Status

User Documentation

Using WurstScript to build a map is easy! Check out the Setup Guide on how to get started. For users, installation is automated and intended to work out of the box via the official setup. For a formal description of all language features, visit the Manual.

Consider joining the WurstScript community on Discord.

Reporting Bugs

Please report any bugs your encounter with our Issue Tracker. Include as much information as possible, ideally with logs. Logfiles are located in your home folder under ~/.wurst/logs. Find the last modified file and pastebin it's contents.

Contributing

See https://github.com/wurstscript/WurstScript/blob/master/CONTRIBUTING.md

System Overview

This repository contains the following sub-projects:

  • de.peeeq.wurstscript
    • The core wurstscript compiler and directly related tools
  • Wurstpack
    • (deprecated) Wurst integration for the Warcraft III World Editor
  • HelperScripts - Some external scripts used for generating data e.g. for StdLib

IDE support is provided via a VSCode plugin: https://github.com/wurstscript/wurst4vscode

The source for the wurstscript website can be found here: https://github.com/wurstscript/wurstscript.github.io

Compiler Build Process

For contributing/developing the compiler, Java 25 is required.
End users normally do not need to install/configure Java manually for the standard Wurst setup flow.

Clone the repository and open the de.peeeq.wurstscript folder which contains the compiler project.

Using Gradle

Use the gradle wrapper to run required tasks, it will download gradle automatically. Replace [task_name] with the desired task.

.\gradlew [task_name]

Examples

To update the local compiler installation used by vscode run

.\gradlew make_for_userdir

For deploying .jars and .zips see tasks in deploy.gradle

.\gradlew create_zip_wurstpack_compiler

Import into IDE

You can import the compiler project into any IDE that provides a gradle plugin. For IntelliJ IDEA, you can simply execute ./gradlew openIdea. To run the Test Suite, execute AllTests.xml with TestNG.

Publishing a new release

Releases are published via GitHub workflows and GitHub Releases:

The version string can be updated in build.gradle.