aboutsummaryrefslogtreecommitdiff
path: root/Source/Parser/wp_parser_y.h
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli.88@gmail.com> 2019-07-24 22:26:23 +0200
committerGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-07-24 13:26:23 -0700
commit69ad179b500cb22d358c6841fce3954e7465bce7 (patch)
tree57a0244081cb8b705916a3c7b023e713f197c3ca /Source/Parser/wp_parser_y.h
parenta994e6e7c4419bdf5bee8d55889f1c25eaea5f1e (diff)
downloadWarpX-69ad179b500cb22d358c6841fce3954e7465bce7.tar.gz
WarpX-69ad179b500cb22d358c6841fce3954e7465bce7.tar.zst
WarpX-69ad179b500cb22d358c6841fce3954e7465bce7.zip
Parser now understands >= , <=, ==, !=, and, or (#230)
* Now parser understands <= and >= * Now parser understands <= and >= * Bugfixing * Updated example * Fixed bug * Fixed precedence and added ==, !=, and, or
Diffstat (limited to 'Source/Parser/wp_parser_y.h')
-rw-r--r--Source/Parser/wp_parser_y.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Parser/wp_parser_y.h b/Source/Parser/wp_parser_y.h
index c583d1a33..4a3aeda40 100644
--- a/Source/Parser/wp_parser_y.h
+++ b/Source/Parser/wp_parser_y.h
@@ -35,6 +35,12 @@ enum wp_f2_t { // Built-in functions with two arguments
WP_POW = 1,
WP_GT,
WP_LT,
+ WP_GEQ,
+ WP_LEQ,
+ WP_EQ,
+ WP_NEQ,
+ WP_AND,
+ WP_OR,
WP_HEAVISIDE,
WP_MIN,
WP_MAX