mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-20 02:45:00 +00:00
Added true and false constants to the expression parser.
This commit is contained in:
parent
c2cd587a9b
commit
a51bc28756
@ -73,6 +73,8 @@ public class Expression {
|
|||||||
this.variableNames = variableNames;
|
this.variableNames = variableNames;
|
||||||
variables.put("e", new Constant(-1, Math.E));
|
variables.put("e", new Constant(-1, Math.E));
|
||||||
variables.put("pi", new Constant(-1, Math.PI));
|
variables.put("pi", new Constant(-1, Math.PI));
|
||||||
|
variables.put("true", new Constant(-1, 1));
|
||||||
|
variables.put("false", new Constant(-1, 0));
|
||||||
for (String variableName : variableNames) {
|
for (String variableName : variableNames) {
|
||||||
variables.put(variableName, new Variable(0));
|
variables.put(variableName, new Variable(0));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user