sql2gbnf
v0.0.20
Published
A library for turning SQL into GBNF grammars
Downloads
10
Readme
SQL2GBNF
A library for parsing JSON schema definitions into .gbnf
grammar files in Javascript.
Install
npm install sql2gbnf
Usage
import SQL2GBNF from 'sql2gbnf';
const grammar = SQL2GBNF({
type: 'object',
properties: {
number: { type: 'number' },
street_name: { type: 'string' },
street_type: { enum: ['Street', 'Avenue', 'Boulevard'] },
},
});
console.log(grammar); // GBNF grammar