parjs
Version:
Library for building parsers using combinators.
13 lines • 434 B
TypeScript
import type { 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>;
//# sourceMappingURL=int.d.ts.map