Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/comuns-rpgmaker/schach-parsing
Core library for parsing in RPG Maker MZ
https://github.com/comuns-rpgmaker/schach-parsing
parsing plugin rpgmaker rpgmakermz typescript
Last synced: 25 days ago
JSON representation
Core library for parsing in RPG Maker MZ
- Host: GitHub
- URL: https://github.com/comuns-rpgmaker/schach-parsing
- Owner: comuns-rpgmaker
- License: zlib
- Created: 2020-08-25T16:50:52.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T14:24:20.000Z (almost 2 years ago)
- Last Synced: 2023-03-09T23:51:43.316Z (almost 2 years ago)
- Topics: parsing, plugin, rpgmaker, rpgmakermz, typescript
- Language: TypeScript
- Homepage: https://comuns-rpgmaker.github.io/schach-parsing
- Size: 823 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Schach - Parsing
![Docs](https://github.com/comuns-rpgmaker/schach-parsing/workflows/Docs/badge.svg)
![Tests](https://github.com/comuns-rpgmaker/schach-parsing/workflows/Tests/badge.svg)
[![codecov](https://codecov.io/gh/comuns-rpgmaker/schach-parsing/branch/master/graph/badge.svg)](https://codecov.io/gh/comuns-rpgmaker/schach-parsing)This plugin provides a core library with Parsing functionality.
**Example usage:**
```typescript
const { expression, evaluate } = Schach.Parsing.Arithmetic;const { parsed: expr } = expression().run("#x^4 - log2(#y)")
evaluate(expr, { variables: { x: 5, y: 32 } })
// returns 5^4 - log2(32) = 625 - 5 = 620
```## Getting Started (Developers)
First of all, make sure you run `npm install` to install all the dependencies
for the project, such as [rollup.js](https://rollupjs.org/) and typescript.Once you are done, `npm run build` will create a JS file for your plugin as
`dist/js/plugins/schach-parsing.js`.