You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ Side effects:
29
29
How does it work?
30
30
-----------------
31
31
32
-
AssemblyScript NEXT compiles a subset (or variant) of TypeScript to Binaryen IR. The resulting module can then be optimized, emitted in text or binary format, or even be converted to asm.js as a polyfill.
32
+
AssemblyScript NEXT compiles a subset (or variant) of TypeScript to [Binaryen](https://github.com/WebAssembly/binaryen) IR. The resulting module can then be optimized, emitted in text or binary format or converted to [asm.js](http://asmjs.org) as a polyfill.
33
33
34
34
Getting started
35
35
---------------
@@ -59,3 +59,24 @@ Development status
59
59
------------------
60
60
61
61
For now, see the [compiler tests](https://github.com/AssemblyScript/next/tree/master/tests/compiler) for an overview of what's supposed to be working already.
62
+
63
+
Using the CLI
64
+
-------------
65
+
66
+
```
67
+
Syntax: asc [options] [file ...]
68
+
69
+
Examples: asc hello.ts
70
+
71
+
Options:
72
+
-v, --version Prints the compiler's version.
73
+
-h, --help Prints this message.
74
+
-O, --optimize Optimizes the module.
75
+
-c, --validate Validates the module.
76
+
-o, --outFile Specifies the output file.
77
+
-b, --binaryFile Specifies the binary format output file.
78
+
-t, --textFile Specifies the text format output file.
79
+
-a, --asmjsFile Specifies the asm.js format output file.
0 commit comments