Skip to content

An interpreter and JIT compiler for a subset of Molang

License

Notifications You must be signed in to change notification settings

hollow-cube/mql

Repository files navigation

Minecraft Query Language (mql)

A subset of MoLang (may eventually be a full implementation). Available as an interpreter or a JIT compiled mode.

Background

Install

Artifacts are published on Maven Central. Add the following to your build.gradle(.kts):

dependencies {
    implementation("dev.hollowcube:mql:{VERSION}")
}

Syntax

mql supports the following syntax

  • Query functions
  • Math & Comparison operators (+, *, ==, etc)

Usage

See the docs.

Future Plans

  • Unify the interpreter and compiler apis
    • Allows for fallback if using unsupported JIT features, permission issues, etc.
  • Temp variables
  • Public variables/querying other scripts
  • Other data types & functions

License

This project is licensed under the MIT License.

About

An interpreter and JIT compiler for a subset of Molang

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages