0.22.0 • Published 2 years ago

lezer-promql v0.22.0

Weekly downloads
25
License
Apache-2.0
Repository
github
Last release
2 years ago

lezer-promql

CircleCI NPM version

Where does it come from?

The authoritative copy of this code lives in prometheus/prometheus and is synced to prometheus/lezer-promql on a regular basis by a bot. Please contribute any code changes to the code in https://github.com/prometheus/prometheus/tree/main/web/ui/module/codemirror-promql/src/grammar.

Overview

This is a PromQL grammar for the lezer parser system. It is inspired by the initial grammar coming from Prometheus written in yacc.

This library is stable but doesn't provide any guideline of how to use it as it has been integrated into codemirror-promql. If you want to use this library, you perhaps want to actually use codemirror-promql instead.

Note: This library is following the changes of the upstream grammar (i.e. coming from Prometheus) as closed as possible

Installation

This package is available as an npm package:

npm install --save lezer-promql

Note: you will have to manually install the dependency lezer as it is a peer dependency to this package.

npm install --save lezer

Development

Building

npm i
npm run build

Testing

npm run test

License

The code is licensed under an Apache 2.0 license.

0.22.0

2 years ago

0.21.0

2 years ago

0.20.0

3 years ago

0.19.0

3 years ago

0.18.0

3 years ago

0.17.0

3 years ago

0.16.0

3 years ago

0.15.0

3 years ago

0.14.0

3 years ago

0.13.0

4 years ago

0.12.0

4 years ago

0.11.0

4 years ago

0.11.1

4 years ago

0.10.0

4 years ago

0.9.0

4 years ago

0.8.0

4 years ago

0.7.0

4 years ago

0.6.0

4 years ago

0.5.0

4 years ago

0.4.0

4 years ago

0.3.1

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago