(&mut self)
| 448 | self.ops.push(Op::Param); |
| 449 | return Ok(()); |
| 450 | } |
| 451 | |
| 452 | if self.eat(b'(') { |
| 453 | let argc = self.parse_args()?; |
| 454 | let op = match (ident.as_str(), argc) { |
| 455 | ("sin", 1) => Op::Sin, |
| 456 | ("cos", 1) => Op::Cos, |
| 457 | ("tan", 1) => Op::Tan, |
| 458 | ("abs", 1) => Op::Abs, |
| 459 | ("sqrt", 1) => Op::Sqrt, |
| 460 | ("min", 2) => Op::Min, |
| 461 | ("max", 2) => Op::Max, |
| 462 | ("clamp", 3) => Op::Clamp, |
no test coverage detected