parjs
Version:
A parser-combinator library for JavaScript.
19 lines (18 loc) • 432 B
TypeScript
/**
* @module parjs
*/
/** */
import { Parjser } from "../parjser";
/**
* A set of options for parsing integers.
*/
export interface IntOptions {
allowSign: boolean;
base: number;
}
/**
* Returns a parser that will parse a single integer, with the options
* given by `options`.
* @param pOptions A set of options for parsing integers.
*/
export declare function int(pOptions?: Partial<IntOptions>): Parjser<number>;