From 92055068709c9a54814efa72ad7e8ffbf97c5c0f Mon Sep 17 00:00:00 2001 From: Nathan Soufflet Date: Sun, 2 Feb 2025 20:48:47 +0100 Subject: [PATCH] [patch] Replace "mod" with "rem" in primop_2expr_keyword rule (#277) * [patch] Replace "mod" with "rem" in primop_2expr_keyword rule * Add a note in the revision history about the grammar change --- revision-history.yaml | 1 + spec.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/revision-history.yaml b/revision-history.yaml index a5d2a69..52fb682 100644 --- a/revision-history.yaml +++ b/revision-history.yaml @@ -5,6 +5,7 @@ revisionHistory: # additions to the specification should append entries here. thisVersion: spec: + - Correct grammar for modulus primitive operator. abi: # Information about the old versions. This should be static. oldVersions: diff --git a/spec.md b/spec.md index edcc88b..3f3380b 100644 --- a/spec.md +++ b/spec.md @@ -4584,7 +4584,7 @@ primop_1expr_keyword = | "andr" | "orr" | "xorr" ; primop_2expr_keyword = - "add" | "sub" | "mul" | "div" | "mod" + "add" | "sub" | "mul" | "div" | "rem" | "lt" | "leq" | "gt" | "geq" | "eq" | "neq" | "dshl" | "dshr" | "and" | "or" | "xor" | "cat" ;