UNPKG

js-slang

Version:

Javascript-based implementations of Source, written in Typescript

11 lines (10 loc) 484 B
import { Program } from 'estree'; import { Chapter, Context } from '../../types'; import { AcornOptions, Parser } from '../types'; export declare class SchemeParser implements Parser<AcornOptions> { private chapter; constructor(chapter: Chapter); parse(programStr: string, context: Context, options?: Partial<AcornOptions>, throwOnError?: boolean): Program | null; validate(_ast: Program, _context: Context, _throwOnError: boolean): boolean; toString(): string; }