node/deps/acorn-plugins/acorn-numeric-separator
Ruben Bridgewater 72c6ea2683
deps: add acorn stage-3 plugins
This adds bigint, class-fields, numeric-separators, static-class
features, private class methods and fields as dependency. That way
it's possible to use these in combination with acorn to parse these
language features.

This also removes a couple of files that were not necessary for
Node.js to reduce the code base.

PR-URL: https://github.com/nodejs/node/pull/27400
Refs: https://github.com/nodejs/node/issues/27391
Refs: https://github.com/nodejs/node/issues/25835
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
2019-04-30 16:22:56 +02:00
..
CHANGELOG.md deps: add acorn stage-3 plugins 2019-04-30 16:22:56 +02:00
LICENSE deps: add acorn stage-3 plugins 2019-04-30 16:22:56 +02:00
README.md deps: add acorn stage-3 plugins 2019-04-30 16:22:56 +02:00
index.js deps: add acorn stage-3 plugins 2019-04-30 16:22:56 +02:00
package.json deps: add acorn stage-3 plugins 2019-04-30 16:22:56 +02:00

README.md

Numeric separator support for Acorn

NPM version

This is a plugin for Acorn - a tiny, fast JavaScript parser, written completely in JavaScript.

It implements support for numeric separators as defined in the stage 3 proposal Numeric Separators.

Usage

This module provides a plugin that can be used to extend the Acorn Parser class to parse numeric separators:

var acorn = require('acorn');
var numericSeparator = require('acorn-numeric-separator');
acorn.Parser.extend(numericSeparator).parse('100_000');

License

This plugin is released under an MIT License.