PlaceholderParser extended with {if}/{elsif}{else} blocks and

+ - * / == != <> numeric expressions.
This commit is contained in:
bubnikv 2017-11-26 09:59:14 +01:00
parent 9205c8aab4
commit 708f416c84
4 changed files with 485 additions and 196 deletions

View file

@ -21,8 +21,8 @@ public:
xy operator-(const xy &rhs) const { xy out(*this); out.x -= rhs.x; out.y -= rhs.y; return out; }
xy& operator+=(const xy &rhs) { x += rhs.x; y += rhs.y; return *this; }
xy& operator-=(const xy &rhs) { x -= rhs.x; y -= rhs.y; return *this; }
bool operator==(const xy &rhs) { return x == rhs.x && y == rhs.y; }
bool operator!=(const xy &rhs) { return x != rhs.x || y != rhs.y; }
bool operator==(const xy &rhs) const { return x == rhs.x && y == rhs.y; }
bool operator!=(const xy &rhs) const { return x != rhs.x || y != rhs.y; }
float x;
float y;
};