summaryrefslogtreecommitdiff
path: root/src/parser.rs
diff options
context:
space:
mode:
authorJJ2023-04-06 22:08:58 +0000
committerJJ2023-04-06 22:08:58 +0000
commit4183e659af29571110dfff91b89b58de7c8dd449 (patch)
tree3182577a0407f13ac426bfa88653774a24f46dc5 /src/parser.rs
parent95ce33948581a10c2d55793b6317c7ce273f936a (diff)
refactor execute to not panic and write tests
Diffstat (limited to 'src/parser.rs')
-rw-r--r--src/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.rs b/src/parser.rs
index 2f918a8..719ee3f 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -34,7 +34,7 @@ pub fn parse_str(input: &str) -> Result<Expression, peg::error::ParseError<peg::
match k.as_str() {
"empty" => Type::Empty,
"unit" => Type::Unit,
- "bool" => Type::Bool,
+ "bool" => Type::Boolean,
"nat" => Type::Natural,
"int" => Type::Integer,
_ => panic!("invalid type"), // fixme: raise an error