Skip to content

Commit e0e13f3

Browse files
committed
Parse sort params in ad-hoc way
1 parent 8089bfb commit e0e13f3

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/annot.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,16 @@ where
839839
"string" => unimplemented!(),
840840
"null" => chc::Sort::null(),
841841
"fn" => unimplemented!(),
842-
_ => unimplemented!(),
842+
name => {
843+
// TODO: ad-hoc
844+
if let Some(i) =
845+
name.strip_prefix("T").and_then(|s| s.parse::<usize>().ok())
846+
{
847+
chc::Sort::param(i)
848+
} else {
849+
unimplemented!();
850+
}
851+
}
843852
};
844853
Ok(sort)
845854
}

0 commit comments

Comments
 (0)