open-index/open-npm huggingface dataset:
npm package: @fc-components/lezer-metricsql
Description: lezer-based MetricsQL grammar
Author: Jsers
Latest version: 0.0.1

# lezer-metricsql

## Overview

This is a PromQL grammar for the [lezer](https://lezer.codemirror.net/) parser system. It is inspired by the initial
grammar coming from [Prometheus](https://github.com/prometheus/prometheus/blob/main/promql/parser/generated_parser.y)
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-metricsql](https://github.com/clavinjune/prometheus-codemirror-metricsql/blob/main/web/ui/module/codemirror-metricsql). If you
want to use this library, you perhaps want to actually use **@clavinjune/codemirror-metricsql** instead.

**Note**: This library is a lezer-based implementation of the [authoritative, goyacc-based PromQL grammar](https://github.com/prometheus/prometheus/blob/main/promql/parser/generated_parser.y). 
Any changes to the authoritative grammar need to be reflected in this package as well.

## Installation

This package is available as an npm package:

```bash
npm install --save @clavinjune/lezer-metricsql
```

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

```bash
npm install --save @lezer/lr @lezer/highlight
```

## Development

### Building

    npm i
    npm run build

### Testing

    npm run test

## License

The code is licensed under an [Apache 2.0](https://github.com/clavinjune/prometheus-codemirror-metricsql/blob/main/LICENSE) license.
npm package: @fc-components/lezer-promql
Description: lezer-based PromQL grammar
Author: Prometheus Authors
Latest version: 0.23.0

# lezer-promql

[![CircleCI](https://circleci.com/gh/prometheus/lezer-promql.svg?style=shield)](https://circleci.com/gh/prometheus/lezer-promql) [![NPM version](https://img.shields.io/npm/v/lezer-promql.svg)](https://www.npmjs.org/package/lezer-promql)

## Status

This package is deprecated. It has been fully migrated to the repository prometheus/prometheus, and it is published
under the npm organization `@prometheus-io`.

See the corresponding [readme](https://github.com/prometheus/prometheus/blob/main/web/ui/module/lezer-promql/README.md)
for further information.

## Overview

This is a PromQL grammar for the [lezer](https://lezer.codemirror.net/) parser system. It is inspired by the initial
grammar coming from [Prometheus](https://github.com/prometheus/prometheus/blob/main/promql/parser/generated_parser.y)
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](https://github.com/prometheus/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 a npm package:

```bash
npm install --save lezer-promql
```

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

```bash
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) license.