Skip to content

moddio/script-parser

Repository files navigation

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

About

typescript package only for lexer and parser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published