@neuledge/states-parser
v0.1.2
Published
A parser for the Neuledge States language
Downloads
39
Maintainers
Readme
Neuledge States Parser
An state parser for Neuledge Engine state language.
This library is not intended to be used directly. It is a dependency of the main package.
📦 Installation
npm install @neuledge/states-parser
🚀 Getting started
import { parseStates } from '@neuledge/states-parser';
// parse a state file and return a document node
const doc = parseStates(`
state Post {
id: Integer;
title: String;
content: String;
createdAt: DateTime;
updatedAt: DateTime;
}
`);
📄 License
Neuledge is Apache 2.0 licensed.