File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,9 +78,9 @@ You can also use the lower-level building blocks:
7878``` ts
7979import { tokenize , parse , compile , init } from " pinky-compiler" ;
8080
81- const { tokens } = tokenize (' println "hi"' );
82- const { ast } = parse (tokens );
83- const { bytes } = compile (ast );
81+ const { tokens, error } = tokenize (' println "hi"' );
82+ const { ast, error } = parse (tokens );
83+ const { bytes, error } = compile (ast );
8484const { run } = await init ();
8585run (bytes );
8686```
@@ -103,4 +103,4 @@ import type {
103103} from " pinky-compiler" ;
104104```
105105
106- Additionally, you can import the syntax types listed [ here] ( https://github.com/KevinBatdorf/pinky-compiler/blob/main/src/index .ts ) .
106+ Additionally, you can import the syntax types listed [ here] ( https://github.com/KevinBatdorf/pinky-compiler/blob/main/src/syntax .ts ) .
You can’t perform that action at this time.
0 commit comments