parjs
Version:
A parser-combinator library for JavaScript.
14 lines (13 loc) • 420 B
TypeScript
/**
* @module parjs
*/
/** */
import { Parjser } from "../parjser";
/**
* Returns a parser that will try to match the regular expression at the current
* position and yield the result set. If it can't, the parser will fail softly.
* The match must start at the current position. It can't skip any part of the
* input.
* @param origRegexp
*/
export declare function regexp(origRegexp: RegExp): Parjser<string[]>;