aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/compiler.rs1
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),