ts library for lexical analysis and parser
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.
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: ''
}))
- converter
- [x] string to moddio2 script object
- [x] moddio2 script object to string
it's still beta, use the latest version plz