Skip to content

Commit 43ad966

Browse files
authored
refactor: Binary format (#154)
1 parent c559caa commit 43ad966

3 files changed

Lines changed: 192 additions & 206 deletions

File tree

docs/binary-format/01-overview.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111

1212
### Addressing
1313

14-
| Type | Description |
15-
| ------------------- | --------------------------------- |
16-
| `StepId` (u16) | 8-byte block index in Transitions |
17-
| `StringId` (u16) | String Table index |
18-
| `TypeId` (u16) | Type Definition index |
19-
| `NodeTypeId` (u16) | Tree-sitter node type ID |
20-
| `NodeFieldId` (u16) | Tree-sitter field ID |
14+
| Type | Description |
15+
| ------------------- | -------------------------------- |
16+
| `StepId` (u16) | 8-byte step index in Transitions |
17+
| `StringId` (u16) | String Table index |
18+
| `TypeId` (u16) | Type Definition index |
19+
| `NodeTypeId` (u16) | Tree-sitter node type ID |
20+
| `NodeFieldId` (u16) | Tree-sitter field ID |
2121

2222
## Memory Layout
2323

@@ -72,7 +72,7 @@ struct Header {
7272
node_fields_count: u16,
7373
trivia_count: u16,
7474
type_defs_count: u16,
75-
type_members_count: u16, // Number of TypeMember blocks
75+
type_members_count: u16, // Number of TypeMembers
7676
entrypoints_count: u16,
7777
transitions_count: u16,
7878
}

0 commit comments

Comments
 (0)