do some registers

This commit is contained in:
nora 2023-07-08 21:07:42 +02:00
parent a363b7c6d1
commit e28469fcc0
9 changed files with 227 additions and 97 deletions

View file

@ -42,7 +42,9 @@ where
let r_bp = prefix_binding_power(&Tok::Punct(punct)).ok_or_else(|| {
Error::new(format!("expected expression, found {punct}"), span)
})?;
let Some(op) = unary_op_from_token(&Tok::Punct(punct)) else { panic!() };
let Some(op) = unary_op_from_token(&Tok::Punct(punct)) else {
panic!()
};
let rhs = self.expr_bp(r_bp)?;
self.next_t()?;