compact compiler ids and spans to reduce memory usage
This commit is contained in:
@@ -3,7 +3,7 @@ package token
|
||||
import "../source"
|
||||
import "../symbol"
|
||||
|
||||
Kind :: enum {
|
||||
Kind :: enum u8 {
|
||||
Invalid,
|
||||
Eof,
|
||||
Newline,
|
||||
@@ -32,10 +32,10 @@ Kind :: enum {
|
||||
}
|
||||
|
||||
Token :: struct {
|
||||
kind: Kind,
|
||||
span: source.Span,
|
||||
symbol: symbol.Id,
|
||||
diagnostic: int,
|
||||
span: source.Span,
|
||||
symbol: symbol.Id,
|
||||
diagnostic: source.Diagnostic_Id,
|
||||
kind: Kind,
|
||||
}
|
||||
|
||||
Stream :: struct {
|
||||
|
||||
Reference in New Issue
Block a user