[Breaking] Change the layout json.Value to be a union rather than a struct of a json.Pos and the union

This commit is contained in:
gingerBill
2021-08-08 12:59:35 +01:00
parent 48538aa792
commit db3501f61b
4 changed files with 83 additions and 103 deletions
+6
View File
@@ -2,6 +2,12 @@ package json
import "core:unicode/utf8"
Pos :: struct {
offset: int,
line: int,
column: int,
}
Token :: struct {
using pos: Pos,
kind: Token_Kind,