diff options
| author | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-03-08 23:10:09 +0100 |
|---|---|---|
| committer | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-03-08 23:10:09 +0100 |
| commit | 6ff6793c94fc715a5587c6515cf7ae989f0a1571 (patch) | |
| tree | 60b217e91f0213cca5be509333fb88f609b94c3a /src | |
| parent | 8a5202b02d909265fc16ddaf4f74112f32dc0b35 (diff) | |
| download | sylt-6ff6793c94fc715a5587c6515cf7ae989f0a1571.tar.gz | |
add void type
Diffstat (limited to 'src')
| -rw-r--r-- | src/compiler.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler.rs b/src/compiler.rs index 22256e4..4c59d86 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -1484,6 +1484,7 @@ impl Compiler { Token::Identifier(x) => { self.eat(); match x.as_str() { + "void" => Ok(Type::Void), "int" => Ok(Type::Int), "float" => Ok(Type::Float), "bool" => Ok(Type::Bool), |
