Welcome to bitsy-parser 👋
A parser for turning Bitsy scripts into JS objects, and vice versa.
Homepage
🏠Examples
✨Install
npm install
Usage
In order to convert a bitsy script into a JS object, you can use parseWorld()
:
const parseWorld = ;const readFileSync = ; const source = ;const parsedObject = ;const json = JSON; console;
In order to convert a properly structured JS object back into a bitsy script, you can use serializeWorld()
(please, do keep in mind that, as of the current version, this routine is unreliable):
const serializeWorld = ;const readFileSync = ; const source = ;const parsedObject = JSON;const bitsyScript = ; console;
If you prefer to have the dialogs/endings parsed as ASTs, you can add the parseScripts
options to parseWorld()
; please, do keep in mind, though, that, as of the current version, serializeWorld()
cannot convert those back into bitsy scripts:
const parseWorld = ;const readFileSync = ; const source = ;const parsedObject = ;const json = JSON; console;
Run tests
npm run test:watch
Author
👤 Haroldo de Oliveira Pinheiro
- Website: http://www.haroldo-ok.com/
- Twitter: @Haroldo0k
- Github: @haroldo-ok
🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Show your support
Give a ⭐️ if this project helped you!
📝 License
Copyright © 2019 Haroldo de Oliveira Pinheiro.
This project is MIT licensed.
This README was generated with ❤️ by readme-md-generator