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
+10-12Lines changed: 10 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,20 +12,18 @@ See the [HertzScript Specification](https://github.com/Floofies/hertzscript-spec
12
12
13
13
There are two different ways to use this:
14
14
15
-
1. Import `src/compile.js` and `src/compileSpawn.js` into your own script.
15
+
1. Import the compiler module into your script.
16
16
17
-
2. Invoke `bin/compileCLI.js` via terminal.
17
+
2. Invoke `hzc` via terminal.
18
18
19
-
`src/compile.js` and `src/compileSpawn.js` are importable modules with simple interfaces.
20
-
21
-
## `compile.js`
19
+
## `Compiler Module`
22
20
23
21
This module serves as the core of the HzScript compilation pipeline, and transforms JavaScript functions into instruction streams; all functions within a HzScript program are GeneratorFunctions which yield instructions.
24
22
25
23
Exported as a single function, you can invoke it like so:
0 commit comments