summaryrefslogtreecommitdiffstats
path: root/Project/MathExprParser.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-12-21 17:36:07 -0200
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-12-21 17:36:07 -0200
commitff52be4e9705d443a4fde091525806322c2dc032 (patch)
tree8c33f42a08c6a0d495b5eb13b4540e0c4f91c74a /Project/MathExprParser.cpp
parent0a014922be0ee9a11668751a956ceeb8034494ee (diff)
downloadPSP.git-ff52be4e9705d443a4fde091525806322c2dc032.tar.gz
PSP.git-ff52be4e9705d443a4fde091525806322c2dc032.tar.xz
PSP.git-ff52be4e9705d443a4fde091525806322c2dc032.zip
Some math expression implementations
Diffstat (limited to 'Project/MathExprParser.cpp')
-rw-r--r--Project/MathExprParser.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/Project/MathExprParser.cpp b/Project/MathExprParser.cpp
index 4d6e79a..623cf75 100644
--- a/Project/MathExprParser.cpp
+++ b/Project/MathExprParser.cpp
@@ -19,8 +19,12 @@
MathExprParser::MathExprParser()
{
- AddConstant("pi", 3.14159265358979323846);
- AddConstant("e", 2.71828182845904523536);
+ AddConstant("PI", 3.14159265358979323846);
+ AddConstant("E", 2.71828182845904523536);
+ AddConstant("CLOSE", 1);
+ AddConstant("OPEN", 0);
+ AddConstant("TRUE", 1);
+ AddConstant("FALSE", 0);
}
MathExprParser::~MathExprParser() {}