Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 997 Bytes

README.md

File metadata and controls

36 lines (29 loc) · 997 Bytes

script-parser

ts library for lexical analysis and parser image

Something useful

jison debugger
jison docs

Overview

the script-parser is a parser for the moddio2 game engine

🚧 _This project is under heavy development, and is currently lacking both features and docs / usability polish.

Usage

pnpm add script-parser
import { parser, actionToString } from "script-parser"
console.log(parser.parse('hello script-parser'));
console.log(actionToString({
    o: parser.parse('hello script-parser'),
    defaultReturnType: '',
    gameData: { unitTypes: {} },
    parentKey: ''
}))

Feature List

  • converter
    • string to moddio2 script object
    • moddio2 script object to string

Compatible moddio2 versions

it's still beta, use the latest version plz