lezer-parser/javascript

A JavaScript lezer grammar

JavaScript

166

271 commits

updated Apr 15, 2026

See the code

README

This repository has moved to https://code.haverbeke.berlin/lezer/javascript

@lezer/javascript

This is a JavaScript grammar for the lezer parser system.

It parses modern JavaScript, and supports a "ts" dialect 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.

Contributors

marijnh

263 commits

bmeurer

3 commits

AlexErrant

1 commits

mbostock

1 commits

lezer-parser/javascript

A JavaScript lezer grammar

JavaScript

166

271 commits

updated Apr 15, 2026

See the code

README

This repository has moved to https://code.haverbeke.berlin/lezer/javascript

@lezer/javascript

This is a JavaScript grammar for the lezer parser system.

It parses modern JavaScript, and supports a "ts" dialect 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.

Contributors

marijnh

263 commits

bmeurer

3 commits

AlexErrant

1 commits

mbostock

1 commits

Languages

JavaScript

100.0%