UNPKG

js-slang

Version:

Javascript-based implementations of Source, written in Typescript

9 lines (8 loc) 379 B
import type { Options as AcornOptions } from 'acorn'; import type { Program } from 'estree'; import { SourceParser } from '..'; import type { Context } from '../../..'; export declare class SourceTypedParser extends SourceParser { parse(programStr: string, context: Context, options?: Partial<AcornOptions>, throwOnError?: boolean): Program | null; toString(): string; }