MCPcopy Create free account
hub / github.com/PerroEngine/Perro / parse_unary

Method parse_unary

perro_source/core/perro_particle_math/src/lib.rs:461–472  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

459 ("sqrt", 1) => Op::Sqrt,
460 ("min", 2) => Op::Min,
461 ("max", 2) => Op::Max,
462 ("clamp", 3) => Op::Clamp,
463 ("hash", 1) => Op::Hash,
464 _ => return Err(CompileError::InvalidFunctionArity),
465 };
466 self.ops.push(op);
467 return Ok(());
468 }
469
470 match ident.as_str() {
471 "t" => self.ops.push(Op::T),
472 "life" => self.ops.push(Op::Life),
473 "lifetime" => self.ops.push(Op::Lifetime),
474 "age_left" => self.ops.push(Op::AgeLeft),
475 "age01" => self.ops.push(Op::Age01),

Callers 1

parse_powerMethod · 0.80

Calls 4

eatMethod · 0.80
parse_primaryMethod · 0.80
skip_wsMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected