Less prose; Update i64 example; More options for asc

This commit is contained in:
dcodeIO
2017-12-25 12:08:51 +01:00
parent 4baff99125
commit 5c4bf1af76
14 changed files with 322 additions and 82 deletions

View File

@@ -113,6 +113,11 @@ export function setNoAssert(options: Options, noAssert: bool): void {
options.noAssert = noAssert;
}
/** Sets the `noMemory` option. */
export function setNoMemory(options: Options, noMemory: bool): void {
options.noMemory = noMemory;
}
/** Compiles the sources computed by the parser to a module. */
export function compile(parser: Parser, options: Options | null = null): Module {
const program: Program = parser.finish();