A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/eslint-community/regexpp below:

eslint-community/regexpp: The regular expression parser for ECMAScript.

@eslint-community/regexpp

A regular expression parser for ECMAScript.

$ npm install @eslint-community/regexpp
import {
    AST,
    RegExpParser,
    RegExpValidator,
    RegExpVisitor,
    parseRegExpLiteral,
    validateRegExpLiteral,
    visitRegExpAST
} from "@eslint-community/regexpp"
parseRegExpLiteral(source, options?)

Parse a given regular expression literal then make AST object.

This is equivalent to new RegExpParser(options).parseLiteral(source).

validateRegExpLiteral(source, options?)

Validate a given regular expression literal.

This is equivalent to new RegExpValidator(options).validateLiteral(source).

visitRegExpAST(ast, handlers)

Visit each node of a given AST.

This is equivalent to new RegExpVisitor(handlers).visit(ast).

new RegExpParser(options?) parser.parseLiteral(source, start?, end?)

Parse a regular expression literal.

parser.parsePattern(source, start?, end?, flags?)

Parse a regular expression pattern.

parser.parseFlags(source, start?, end?)

Parse a regular expression flags.

new RegExpValidator(options) validator.validateLiteral(source, start, end)

Validate a regular expression literal.

validator.validatePattern(source, start, end, flags)

Validate a regular expression pattern.

validator.validateFlags(source, start, end)

Validate a regular expression flags.

new RegExpVisitor(handlers)

Validate a regular expression literal.

Welcome contributing!

Please use GitHub's Issues/PRs.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4