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