mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
Support divide operator in expressions
This commit is contained in:
parent
aa4dd5c8e7
commit
cafbf5499f
4 changed files with 132 additions and 1 deletions
|
@ -46,6 +46,15 @@ pub fn insn_to_str(
|
|||
0,
|
||||
format!("r[{}]=r[{}]*r[{}]", dest, lhs, rhs),
|
||||
),
|
||||
Insn::Divide { lhs, rhs, dest } => (
|
||||
"Divide",
|
||||
*lhs as i32,
|
||||
*rhs as i32,
|
||||
*dest as i32,
|
||||
OwnedValue::Text(Rc::new("".to_string())),
|
||||
0,
|
||||
format!("r[{}]=r[{}]/r[{}]", dest, lhs, rhs),
|
||||
),
|
||||
Insn::Null { dest, dest_end } => (
|
||||
"Null",
|
||||
0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue