0.1.2 • Published 7 months ago

@neuledge/states-parser v0.1.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
7 months ago

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.