basic float arith, wip float trig, abs

This commit is contained in:
2020-10-17 23:58:24 +02:00
parent e560fc5657
commit 68c9b33637
10 changed files with 521 additions and 36 deletions
+3 -3
View File
@@ -21,7 +21,7 @@ pub(crate) fn parse<'a>(_pos: &SourcePosition, keyword: &str, mut args: TokenPar
let value = match args.next() {
None => {
BufValue::Zeros(Rd::immediate(0))
BufValue::Zeros(Rd::new_imm(0))
}
Some(tok @ Sexp::Atom(Atom::S(_), _)) |
Some(tok @ Sexp::Atom(Atom::I(_), _)) |
@@ -112,7 +112,7 @@ pub(crate) fn parse<'a>(_pos: &SourcePosition, keyword: &str, mut args: TokenPar
"bfrpush" => {
BufOps::Insert {
obj: args.next_rdobj()?,
idx: Rd::immediate(0),
idx: Rd::new_imm(0),
value: args.next_rd()?,
}
}
@@ -121,7 +121,7 @@ pub(crate) fn parse<'a>(_pos: &SourcePosition, keyword: &str, mut args: TokenPar
BufOps::Remove {
dst: args.next_wr()?,
obj: args.next_rdobj()?,
idx: Rd::immediate(0),
idx: Rd::new_imm(0),
}
}