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