lang: parser, funcs: Change the logical operators to OR, AND, NOT
This makes it easier to read for some, and easier to parse for us. This also frees up more characters to use elsewhere.
This commit is contained in:
@@ -119,17 +119,17 @@
|
||||
lval.str = yylex.Text()
|
||||
return GTE
|
||||
}
|
||||
/&&/ {
|
||||
/and/ {
|
||||
yylex.pos(lval) // our pos
|
||||
lval.str = yylex.Text()
|
||||
return AND
|
||||
}
|
||||
/\|\|/ {
|
||||
/or/ {
|
||||
yylex.pos(lval) // our pos
|
||||
lval.str = yylex.Text()
|
||||
return OR
|
||||
}
|
||||
/!/ {
|
||||
/not/ {
|
||||
yylex.pos(lval) // our pos
|
||||
lval.str = yylex.Text()
|
||||
return NOT
|
||||
|
||||
Reference in New Issue
Block a user