mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-17 20:01:31 +00:00
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:
@ -19,6 +19,8 @@ enum class InfixOperator(val token: String) {
|
||||
Greater(">"),
|
||||
GreaterEqual(">="),
|
||||
LesserEqual("<="),
|
||||
BooleanAnd("and"),
|
||||
BooleanOr("or"),
|
||||
BinaryAnd("&"),
|
||||
BinaryOr("|"),
|
||||
BinaryExclusiveOr("^")
|
||||
|
@ -7,7 +7,7 @@ import kotlinx.serialization.Serializable
|
||||
@Serializable
|
||||
@SerialName("prefixOperator")
|
||||
enum class PrefixOperator(val token: String) {
|
||||
Negate("!"),
|
||||
BooleanNot("not"),
|
||||
UnaryPlus("+"),
|
||||
UnaryMinus("-"),
|
||||
BinaryNot("~")
|
||||
|
Reference in New Issue
Block a user