From 57e3f53598059dd4553ee0f5933ca60a11ad6d91 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 10 Mar 2026 17:29:33 +0100 Subject: Add the divrem (/%) operator --- oryxc/src/parser.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'oryxc/src/parser.rs') diff --git a/oryxc/src/parser.rs b/oryxc/src/parser.rs index 89e2769..70b530f 100644 --- a/oryxc/src/parser.rs +++ b/oryxc/src/parser.rs @@ -686,6 +686,7 @@ impl<'a> Parser<'a> { | TokenType::Asterisk | TokenType::Percent | TokenType::Percent2 + | TokenType::SlashPercent | TokenType::Slash => 5, TokenType::Bar | TokenType::Minus @@ -817,6 +818,7 @@ impl<'a> Parser<'a> { | TokenType::Percent2 | TokenType::Plus | TokenType::Slash + | TokenType::SlashPercent | TokenType::Tilde => { let i = self.cursor; self.next(); -- cgit v1.2.3