language: add boolean and/or operators, change negation syntax (#7)

* language: add boolean and/or operators, change negation syntax

* examples: simplify row builder using arrays
This commit is contained in:
a dinosaur
2023-09-12 04:02:58 +10:00
committed by GitHub
parent 0aab45094a
commit a07e0fe672
7 changed files with 65 additions and 11 deletions

View File

@ -19,6 +19,8 @@ enum class InfixOperator(val token: String) {
Greater(">"),
GreaterEqual(">="),
LesserEqual("<="),
BooleanAnd("and"),
BooleanOr("or"),
BinaryAnd("&"),
BinaryOr("|"),
BinaryExclusiveOr("^")

View File

@ -7,7 +7,7 @@ import kotlinx.serialization.Serializable
@Serializable
@SerialName("prefixOperator")
enum class PrefixOperator(val token: String) {
Negate("!"),
BooleanNot("not"),
UnaryPlus("+"),
UnaryMinus("-"),
BinaryNot("~")