mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-04 05:31:33 +00:00
language: euclidean modulo and remainder infix operators (#3)
This commit is contained in:
@ -64,6 +64,12 @@ types:
|
||||
- name: NotEquals
|
||||
values:
|
||||
token: "!="
|
||||
- name: EuclideanModulo
|
||||
values:
|
||||
token: "mod"
|
||||
- name: Remainder
|
||||
values:
|
||||
token: "rem"
|
||||
InfixOperation:
|
||||
parent: Expression
|
||||
values:
|
||||
|
@ -12,5 +12,7 @@ enum class InfixOperator(val token: String) {
|
||||
Multiply("*"),
|
||||
Divide("/"),
|
||||
Equals("=="),
|
||||
NotEquals("!=")
|
||||
NotEquals("!="),
|
||||
EuclideanModulo("mod"),
|
||||
Remainder("rem")
|
||||
}
|
||||
|
Reference in New Issue
Block a user