diff options
author | Himbeer <himbeer@disroot.org> | 2024-09-12 11:15:31 +0200 |
---|---|---|
committer | Himbeer <himbeer@disroot.org> | 2024-09-12 12:34:26 +0200 |
commit | 8712349ebc414cc4312cf44553f9363cae7b06e0 (patch) | |
tree | 63df4a352c4dff09dbdb3ab02b49305d3ec1e780 /doc | |
parent | d49e14428603a5561147db576ebdafe43b9a613f (diff) |
Treat builtin types as keywords during lexical analysis
Diffstat (limited to 'doc')
-rw-r--r-- | doc/grammar.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/grammar.txt b/doc/grammar.txt index 8616eca..acf3762 100644 --- a/doc/grammar.txt +++ b/doc/grammar.txt @@ -48,12 +48,12 @@ defer := "defer" call type := integer | float | array | slice | struct | enum | union | "*" type | "?" type | "!" type | IDENT -integer := "i8" | "u8" - | "i16" | "u16" - | "i32" | "u32" - | "i64" | "u64" - | "isize" | "usize" -float := "f32" | "f64" +integer := "int8" | "uint8" + | "int16" | "uint16" + | "int32" | "uint32" + | "int64" | "uint64" + | "int" | "uint" +float := "float32" | "float64" array := "[" INTEGER "]" type slice := "[]" type struct := "struct" "{" fields "}" |