UNPKG

642 BTypeScriptView Raw
1import { List, Set } from "immutable";
2import { restrictStatement } from "./restrictsyntax";
3import { Lang } from "./lang";
4import * as ast from "./ast";
5import * as parsed from "./parsedsyntax";
6export declare function parseExpression(str: string, options?: {
7 lang?: Lang;
8 types?: Set<string>;
9}): ast.Expression;
10export declare function parseStatement(str: string, options?: {
11 types?: Set<string>;
12 lang: Lang;
13}): typeof restrictStatement;
14export declare function parseProgramRaw(str: string): List<string | parsed.Declaration>;
15export declare function parseProgram(lang: Lang, str: string): List<string | ast.Declaration>;