mirror of https://github.com/rm-dr/daisy
Comments and whitespace
parent
47cbd29c27
commit
5d234b9ff6
|
@ -1,6 +1,9 @@
|
|||
#[derive(Debug)]
|
||||
#[derive(Copy, Clone)]
|
||||
pub enum Function {
|
||||
// When adding a function, don't forget to update help command text.
|
||||
// It isn't automatically generated.
|
||||
|
||||
Abs,
|
||||
Floor,
|
||||
Ceil,
|
||||
|
|
|
@ -11,13 +11,16 @@ use super::Function;
|
|||
#[derive(Copy)]
|
||||
#[repr(usize)]
|
||||
pub enum Operator {
|
||||
// When adding operators, don't forget to update help command text.
|
||||
// It isn't automatically generated.
|
||||
|
||||
Define = 0, // Variable and function definition
|
||||
ModuloLong, // Mod invoked with "mod"
|
||||
DivideLong,
|
||||
DivideLong, // Division invoked with "per"
|
||||
UnitConvert,
|
||||
Subtract,
|
||||
Add,
|
||||
Divide,
|
||||
Divide, // Division invoked with "/"
|
||||
Multiply,
|
||||
Modulo, // Mod invoked with %
|
||||
Negative,
|
||||
|
|
Loading…
Reference in New Issue