Rename AST types to type expressions

This commit is contained in:
2025-03-02 23:35:07 +01:00
parent 09f204bd16
commit c5930285bf
13 changed files with 462 additions and 280 deletions

View File

@ -72,13 +72,13 @@ type
first: Position
last: Position
end
FILE* = record end
SourceFile* = record
buffer: [1024]Char
handle: ^FILE
size: Word
index: Word
end
FILE* = record end
StringBuffer* = record
data: ^Byte
size: Word
@ -92,15 +92,14 @@ type
advance: proc(data: ^Byte)
head: proc(data: ^Byte) -> Char
end
TokenValue* = union
int_value: Int
string: String
boolean_value: Bool
char_value: Char
end
Token* = record
kind: Int
value: TokenValue
value: union
int_value: Int
string: String
boolean_value: Bool
char_value: Char
end
location: Location
end
CommandLine* = record