Skip to content

A cst-tokens grammar for use with estree-compatible ASTs

License

Notifications You must be signed in to change notification settings

erights/js-grammar-estree

 
 

Repository files navigation

@cst-tokens/js-grammar-estree

A cst-tokens grammar used for adding CST tokens to estree-compatible ASTs.

Usage

import { parseModule } from 'meriyah';
import { updateTokens, print } from 'cst-tokens';
import jsGrammar from '@cst-tokens/js-grammar-estree';

const sourceText = `export * from 'source';`;

updateTokens(parseModule(sourceText), jsGrammar, { sourceText });

About

A cst-tokens grammar for use with estree-compatible ASTs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%