open-index/open-npm huggingface dataset:
npm package: @lezer/common
Description: Syntax tree data structure and parser interfaces for the lezer parser
Author: Marijn Haverbeke
Latest version: 1.5.2

# @lezer/common

[ [**WEBSITE**](http://lezer.codemirror.net) | [**ISSUES**](https://github.com/lezer-parser/lezer/issues) | [**FORUM**](https://discuss.codemirror.net/c/lezer) | [**CHANGELOG**](https://github.com/lezer-parser/common/blob/master/CHANGELOG.md) ]

[Lezer](https://lezer.codemirror.net/) is an incremental parser system
intended for use in an editor or similar system.

@lezer/common provides the syntax tree data structure and parser
abstractions for Lezer parsers.

Its programming interface is documented on [the
website](https://lezer.codemirror.net/docs/ref/#common).

This code is licensed under an MIT license.
npm package: @lezer/cpp
Description: lezer-based C++ grammar
Author: Marijn Haverbeke
Latest version: 1.1.5

# @lezer/cpp

This is a C++ grammar for the
[Lezer](https://lezer.codemirror.net/) parser system.

The grammar used is based in a large part on the corresponding
[tree-sitter grammar](https://github.com/tree-sitter/tree-sitter-cpp).

It should be noted that really parsing C++ without a symbol table and
a preprocessor is not really something that is _possible_. The
language is very, very ambiguous when parsed like that. This grammar
tries to pick a likely parse, but is entirely capable of picking the
wrong one.

The code is licensed under an MIT license.
npm package: @lezer/generator
Description: Parser generator for the incremental lezer parser
Author: Marijn Haverbeke
Latest version: 1.8.0

# @lezer/generator

[ [**WEBSITE**](http://lezer.codemirror.net) | [**ISSUES**](https://github.com/lezer-parser/lezer/issues) | [**FORUM**](https://discuss.codemirror.net/c/lezer) | [**CHANGELOG**](https://github.com/lezer-parser/generator/blob/master/CHANGELOG.md) ]

This is an [LR(1)](https://en.wikipedia.org/wiki/LR_parser) (more precisely pseudo-[LALR](https://en.wikipedia.org/wiki/LALR_parser),with opt-in [GLR](https://en.wikipedia.org/wiki/GLR_parser)) parser generator which outputs grammars that can be used by the [Lezer](https://github.com/lezer-parser/lezer/) parser.

This package exports both a command-line parser generator tool called [`lezer-generator`](https://lezer.codemirror.net/docs/guide/#building-a-grammar) and a [programming interface](https://lezer.codemirror.net/docs/ref/#generator).

The grammar format that the tool accepts is documented in the [system guide](https://lezer.codemirror.net/docs/guide/#writing-a-grammar).

See `test/cases/` for some simple example grammars, or [lezer-javascript](https://github.com/lezer-parser/javascript) for a real grammar.

You can import `"@lezer/generator/rollup"` to get a [Rollup](https://rollupjs.org/guide/en/) plugin that will transform files ending in `.grammar` or `.grammar.terms` (a pseudo-source referring to the terms produced by the `.grammar` file) as part of the rollup build process.

```javascript
import {lezer} from "@lezer/generator/rollup"

export default {
  input: "./in.js",
  output: {file: "out.js", format: "cjs"},
  plugins: [lezer()]
}
```

The plugin can be passed `lezer({exportName})` option to configure the name of the parser export.

The code is licensed under an MIT license.
npm package: @lezer/highlight
Description: Highlighting system for Lezer parse trees
Author: Marijn Haverbeke
Latest version: 1.2.3

# @lezer/highlight

[ [**WEBSITE**](http://lezer.codemirror.net) | [**ISSUES**](https://github.com/lezer-parser/lezer/issues) | [**FORUM**](https://discuss.codemirror.net/c/lezer) | [**CHANGELOG**](https://github.com/lezer-parser/highlight/blob/master/CHANGELOG.md) ]

[Lezer](https://lezer.codemirror.net/) is an incremental parser system
intended for use in an editor or similar system.

@lezer/highlight provides a syntax highlighting framework for Lezer
parse trees.

Its programming interface is documented on [the
website](https://lezer.codemirror.net/docs/ref/#highlight).

This code is licensed under an MIT license.
npm package: @lezer/html
Description: lezer-based HTML grammar
Author: Marijn Haverbeke
Latest version: 1.3.13

# @lezer/html

This is an HTML grammar for the
[lezer](https://lezer.codemirror.net/) parser system.

The code is licensed under an MIT license.

## Interface

This package exports two bindings:

**`parser`**`: Parser`

The parser instance for the basic HTML grammar. Supports two dialects:

 - `"noMatch"` turns off tag matching, creating regular syntax nodes
   even for mismatched tags.

 - `"selfClosing"` adds support for `/>` self-closing tag syntax.

**`configureNesting`**`(tags?: {`\
`  tag: string,`\
`  attrs?: (attrs: {[attr: string]: string}) => boolean,`\
`  parser: Parser,`\
`}[], attributes?: {`\
`  name: string,`\
`  tagName?: string,`\
`  parser: Parser,`\
`}[]): ParseWrapper`

Create a nested parser config object which overrides the way the
content of some tags or attributes is parsed. Each tag override is an
object with a `tag` property holding the (lower case) tag name to
override, and an optional `attrs` predicate that, if given, has to
return true for the tag's attributes for this override to apply.

The `parser` property describes the way the tag's content is parsed.
npm package: @lezer/java
Description: lezer-based Java grammar
Author: Marijn Haverbeke
Latest version: 1.1.3

# @lezer/java

This is a Java grammar for the
[Lezer](https://lezer.codemirror.net/) parser system.

The grammar used is based in a large part on the corresponding
[tree-sitter grammar](https://github.com/tree-sitter/tree-sitter-java).

The code is licensed under an MIT license.
npm package: @lezer/javascript
Description: lezer-based JavaScript grammar
Author: Marijn Haverbeke
Latest version: 1.5.4

# @lezer/javascript

This is a JavaScript grammar for the
[lezer](https://lezer.codemirror.net/) parser system.

It parses modern JavaScript, and supports a `"ts"`
[dialect](https://lezer.codemirror.net/docs/guide/#dialects) to parse
TypeScript, and a `"jsx"` dialect to parse JSX.

The `top` option can be set to `"SingleExpression"` or
`"SingleClassItem"` to parse an expression or class item instead of a
full program.

The code is licensed under an MIT license.
npm package: @lezer/json
Description: lezer-based JSON grammar
Author: Arun Srinivasan
Latest version: 1.0.3

# @lezer/json

This is a JSON grammar for the [lezer](https://lezer.codemirror.net/) parser system.

Reference:
- https://www.json.org/json-en.html
- https://tools.ietf.org/html/rfc8259 (The latest IETF RFC – contains the latest full spec)
npm package: @lezer/lr
Description: Incremental parser
Author: Marijn Haverbeke
Latest version: 1.4.8

# @lezer/lr

[ [**WEBSITE**](http://lezer.codemirror.net) | [**ISSUES**](https://github.com/lezer-parser/lezer/issues) | [**FORUM**](https://discuss.codemirror.net/c/lezer) | [**CHANGELOG**](https://github.com/lezer-parser/lr/blob/master/CHANGELOG.md) ]

Lezer ("reader" in Dutch, pronounced pretty much as laser) is an
incremental GLR parser intended for use in an editor or similar
system, which needs to keep a representation of the program current
during changes and in the face of syntax errors.

It prioritizes speed and compactness (both of parser table files and
of syntax tree) over having a highly usable parse tree—trees nodes are
just blobs with a start, end, tag, and set of child nodes, with no
further labeling of child nodes or extra metadata.

This package contains the run-time LR parser library. It consumes
parsers generated by
[@lezer/generator](https://github.com/lezer-parser/generator).

The parser programming interface is documented on [the
website](https://lezer.codemirror.net/docs/ref/#lr).

The code is licensed under an MIT license.

This project was hugely inspired by
[tree-sitter](http://tree-sitter.github.io/tree-sitter/).
npm package: @lezer/php
Description: Lezer-based PHP grammar
Author: Marijn Haverbeke
Latest version: 1.0.5

# @lezer/php

This is a PHP grammar for the
[Lezer](https://lezer.codemirror.net/) parser system.

The grammar used is based in part on the corresponding [tree-sitter
grammar](https://github.com/tree-sitter/tree-sitter-php) and the [Zend
Yacc
grammar](https://github.com/php/php-src/blob/master/Zend/zend_language_parser.y).

The code is licensed under an MIT license.
npm package: @lezer/rust
Description: Lezer-based Rust grammar
Author: Marijn Haverbeke
Latest version: 1.0.2

# @lezer/rust

This is a Rust grammar for the
[Lezer](https://lezer.codemirror.net/) parser system.

The grammar used is based in part on the corresponding
[tree-sitter grammar](https://github.com/tree-sitter/tree-sitter-rust).

The code is licensed under an MIT license.
npm package: @lezer/sass
Description: Lezer-based Sass/SCSS grammar
Author: Marijn Haverbeke
Latest version: 1.1.0

# @lezer/sass

This is a Sass/SCSS grammar for the
[lezer](https://lezer.codemirror.net/) parser system.

Parses SCSS [syntax](https://sass-lang.com/documentation/syntax) by
default. Enable the "indented" dialect to support
[indented](https://sass-lang.com/documentation/syntax#the-indented-syntax)
syntax.

The code is licensed under an MIT license.
npm package: @lezer/yaml
Description: Lezer-based YAML grammar
Author: Marijn Haverbeke
Latest version: 1.0.4

# @lezer/yaml

This is a [YAML](https://yaml.org/) grammar for the
[lezer](https://lezer.codemirror.net/) parser system.

Reference:

  - https://yaml.org/spec/1.2.2/

The initial implementation of this package was funded by [Braintrust
Data](https://braintrustdata.com/).
npm package: @lezhin/react-generate-component
Description: [![Build Status](https://travis-ci.org/lezhin/react-generate-component.svg?branch=master)](https://travis-ci.org/lezhin/react-generate-component) [![codecov](https://codecov.io/gh/lezhin/react-generate-component/branch/master/graph/badge.svg)](https://cod
Author: UYEONG
Latest version: 0.0.4

# React Generate Component

[![Build Status](https://travis-ci.org/lezhin/react-generate-component.svg?branch=master)](https://travis-ci.org/lezhin/react-generate-component) [![codecov](https://codecov.io/gh/lezhin/react-generate-component/branch/master/graph/badge.svg)](https://codecov.io/gh/lezhin/react-generate-component)

This is a tool to generate React Component files.

<img src="https://media.giphy.com/media/xUOrwmSOd4RzrP8ofK/giphy.gif" width="450">

## Installation

```
$ npm install -g @lezhin/react-generate-component
```

## Usage

### CLI

```
Usage: rgc [options] <name ...>


Options:

-V, --version        output the version number
-c, --config <path>  set a custom path to look for a config file
-o, --override       set a allow files to override
-h, --help           output usage information
```

## Node.js

```
const rgc = require('@lezhin/react-generate-component').generate;

const componentNames = ['hello', 'world'];
const customConfig = {};
const allowOverride = false;

rgc(componentNames, customConfig, allowOverride).then(() => {
    console.log('Generated!');
});
```
npm package: @lezram/math-interval
Description: Working with mathematical intervals
Author: lezram
Latest version: 1.1.1

![Build](https://github.com/lezram/math-interval/workflows/Build/badge.svg)
[![npm version](https://img.shields.io/npm/v/@lezram/math-interval.svg)](https://www.npmjs.com/package/@lezram/math-interval)
[![Downloads](http://img.shields.io/npm/dm/@lezram/math-interval.svg)](https://www.npmjs.com/package/@lezram/math-interval)

[![NPM](https://nodei.co/npm/@lezram/math-interval.png)](https://nodei.co/npm/@lezram/math-interval/)

# @lezram/math-interval
A very simple interval library

## Installation

### node
```
npm i @lezram/math-interval --save
```

## Usage
### NodeJS
#### Javascript
```javascript
const Interval = require("@lezram/math-interval").Interval;
const timeInterval = new Interval(Date.UTC(2020, 0, 1), Date.UTC(2020, 0, 3), false, true);
```

#### Typescript
```javascript
import {Interval} from "@lezram/math-interval";
const timeInterval = new Interval(Date.UTC(2020, 0, 1), Date.UTC(2020, 0, 3), false, true);
```

#### Browser
```html
<script src="math-interval.js"></script>
<script>
const Interval = MathInterval.Interval;
const timeInterval = new Interval(Date.UTC(2020, 0, 1), Date.UTC(2020, 0, 3), false, true);
console.log(timeInterval);
</script>
```

## API

* `new Interval(start: number, end: number, includeStart: boolean, includeEnd: boolean)` \
    Create an interval object
    ```typescript
      new Interval(1, 2, true, false);
    ```
* `Interval.from(intervalNotation: string): Interval` \
    Create an interval object from mathematical interval notation
    ```typescript
      Interval.from("[1,2]");
    ```
* `Interval.sort(interval1, interval2, ...): Interval[]` \
    Sort intervals with following order: empty, lowest start, lowest end
* `Interval.union(interval1, interval2, ...): Interval[]` \
    Union elements and sort
    ```typescript
    const interval1 = new Interval(1, 2, true, true);
    const interval2 = new Interval(2, 4, false, false);
  
    const union = Interval.union(interval1, interval2);
    // union = new Interval(1, 4, true, false);
    ```
* `obj.isOverlapping(interval: Interval): boolean` \
    Checks if passed interval overlaps/intersect
* `obj.contains(numberOrInterval: number | Interval): boolean` \
    Contains passed number or interval completely
* `obj.isEmpty(): boolean` \
    If is an empty interval `{}`, `[2,1]`, `(1,1)`, `(1,1]`, `[1,1)`
* `obj.copy(): Interval` \
    Copy interval
* `obj.isEqual(interval: Interval): boolean` \
    Check if interval is equal

## Similar libraries
* [math.interval](https://github.com/xgbuils/math.interval)
* [math-intervals](https://github.com/pifactory/math-intervals)
* [math-interval](https://github.com/harunurhan/math-interval)
* [math-interval-parser](https://github.com/Semigradsky/math-interval-parser)