Skip to content

YKDZ/HyphaScript

Repository files navigation

HyphaScript

English | 简体中文

Introduction

A lightweight JavaScript-like scripting language running on the JVM, originally designed to add dynamic functionality to .yml configuration files in Minecraft Paper plugins.

Its Abstract Syntax Tree (AST) is built using a custom implementation of the Pratt Parser.

Features

  • Native support for Adventure API Component template strings and + operations
  • Uses BigDecimal for numeric storage
  • Supports array and string slicing syntax
  • Supports configuration-friendly function calls like func{arg1="1", arg2="2"}
  • Simple lexical scoping mechanism
  • Allows registering native Java functions via ScriptObject and MethodHandle
  • Includes built-in utility functions for interacting with the Minecraft environment, such as message(msg) and tp_to_player(player_name)

Use Cases

About

Simple script system based on JVM.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages