Skip to content

Commit

Permalink
extract api
Browse files Browse the repository at this point in the history
  • Loading branch information
marihachi committed Aug 14, 2021
1 parent ff8e4c4 commit 40e90a4
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions etc/aiscript.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ export class AiScript {
unregisterAbortHandler(handler: () => void): void;
}

// Warning: (ae-forgotten-export) The symbol "RawAST" needs to be exported by the entry point index.d.ts
//
// @public (undocumented)
export function analyze(ast: RawAST): Node_2[];

// @public (undocumented)
const ARR: (arr: VArr['value']) => {
type: "arr";
Expand Down Expand Up @@ -132,7 +127,21 @@ const OBJ: (obj: VObj['value']) => {
};

// @public (undocumented)
export function parse(input: string): RawAST;
export function parse(input: string): Node_2[];

// @public (undocumented)
export class Parser {
constructor();
// (undocumented)
addPlugin(plugin: ParserPlugin): void;
// (undocumented)
static parse(input: string): Node_2[];
// (undocumented)
parse(input: string): Node_2[];
}

// @public (undocumented)
export type ParserPlugin = (nodes: Node_2[]) => Node_2[];

// @public (undocumented)
const RETURN: (v: VReturn['value']) => {
Expand Down

0 comments on commit 40e90a4

Please sign in to comment.