mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-12-01 07:24:56 -10:00
* Standardize on the 'nonzero' spelling in comments * Fill small gaps in the math expression parser Adds the unary plus operator, the `true` and `false` constants, the `choose` and `pick` combinatorics functions, base-suffixed `logN`/ `rootN` function names with optional underscores and fractional bases like `log3.25`, the typeset operator spellings (`−`, `×`, `⋅`, `÷`, `∧`, `∨`, `¬`), and `Value` accessors reading results as `f32` and the standard integer types. Constants match their lowercase spelling exactly, since uppercase-initial names are reserved for matrices. The `¬` spelling is the prefix logical not alone, never the postfix factorial that `!` also spells, and punctuation never begins a name, which leaves `#`, `$`, `~`, and `@` free to become namespace prefixes once a host scope needs them. Retires the `√` prefix operator, which is untypeable and duplicates `sqrt()`, and removes the undocumented unitless `G` constant: its 9.80665 is the value of lowercase-g standard gravity under capital-G's name, and gravity's proper home is the future unit system's `g` acceleration unit. Also covers the previously untested interaction between implicit multiplication and unary minus with parenthesized operands (`2 (-3)`, `-3(2)`) in the test suite.