1.0.0 • Published 1 year ago
@parseql/hive v1.0.0
@parseql/hive
HiveQL parser for javascript built with antlr4
Installation
Install with npm
npm install @parseql/hiveUsage
import { parse } from "@parseql/hive";
const sql = "...";
try {
parse(sql);
} catch (e) {
console.error("parse error occurred");
}Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Development
You must have antlr4 installed on your machine.
Install dependencies
$ yarnBuild the package
$ yarn buildThen run tests
$ yarn testAbout the grammar
The grammar and most of the examples are taken from https://github.com/antlr/grammars-v4/tree/master/sql/hive/v4
License
1.0.0
1 year ago