lucene-qs-parser
v0.0.5
Published
Lucene Query Parser for JavaScript created using antlr4
Downloads
7
Maintainers
Readme
Lucene Parser
example
import { ANTLRInputStream, CommonTokenStream } from 'antlr4ts';
import { LuceneGrammarLexer, LuceneGrammarParser, MainQContext, parse } from 'lucene-parser';
const qs = 'a AND b NOT key: value'
const { ast, syntaxErrors } = parse(qs)
console.log(ast, syntaxErrors)