| Age | Commit message (Collapse) | Author |
|
|
|
Add static to the functions which is not intentionally
export to big scope.
|
|
|
|
|
|
The general convention in the codebase is to compare the non-constant
value/string with the constant value/string, not the other way around.
|
|
MakeFunctionExpression()
Given all conditional bodies only contain a return, the use of else here
isn't necessary.
This has the benefit of consistently vertically aligning the names.
|
|
std::string_view
There's nothing within this function that requires a copy of the string
to be made, so we can make use of a non-owning view
|
|
This isn't used anywhere in the translation unit, so we can remove it.
|
|
This header was including itself, which is likely not intended.
|
|
Since we target C++17, we can collapse the namespaces into a single
declaration specifier.
|
|
std::min/std::max are used within this translation unit, so it needs to
be included to prevent potential compilation failures.
|
|
|
|
This is hopefully clearer, since we're not dealing with a file.
|
|
|
|
|
|
|
|
|
|
serialization functions.
|
|
|
|
|
|
|
|
|
|
for each press.
|
|
|
|
|
|
taps within Y seconds.
|
|
N seconds.
|
|
|
|
|
|
state.
|
|
|
|
argument. e.g. !`Up`
|
|
|
|
trailing tokens.
|
|
|
|
|
|
atoms are read after the function name. Added "if" function and made the "while" function more sensible with an arity of 2. Removed the ugly binary conditional operator.
|
|
increases from 0.0 to 1.0 and resets after N seconds. e.g. (!timer 2.0) is a 2 second timer. Fixed parsing of unary expressions so things like (! ! 1.0) work.
|
|
without tick delimiter: e.g. 0.75
|
|
|
|
prevent infinite loops. Rhs is re-evaluated until it is < 0.5. Added comma operator, which behaves like it does in c++. Added subration operator.
|
|
|
|
lhs > 0.5 else 0.0.
|
|
|
|
for variables and assignment operator. ControlExpression objects now reference a matching input and output so the two can me mixed in any expression. (you can set rumble directly from inputs)
|
|
can be used for auto-fire and oscillators.
|
|
!toggle function which toggles on/off with each activation of its inner expression.
|
|
zero evaluates as zero). Don't clamp result of addition operator. Clamping will be done later.
|
|
|
|
|