Add CLI definitions; CLI restructure

This commit is contained in:
dcodeIO
2018-05-28 18:55:51 +02:00
parent d0244a9b0f
commit c9ed03028d
14 changed files with 187 additions and 60 deletions

11
cli/transform.d.ts vendored Normal file
View File

@ -0,0 +1,11 @@
/**
* Definitions for custom compiler transforms that can be applied with the `--transform` option.
* @module cli/transform
*//***/
import { Parser } from "../src/parser";
export interface Transform {
/** Called when parsing is complete, before a program is instantiated from the AST. */
afterParse(parser: Parser): void;
}