Skip to content

Commit 8438155

Browse files
authored
Fix syntax link
1 parent 3e03622 commit 8438155

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ You can also use the lower-level building blocks:
7878
```ts
7979
import { 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);
8484
const { run } = await init();
8585
run(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).

0 commit comments

Comments
 (0)