From bfe66a70e6fb4ac20253f6d5fb85946ef14ecbc6 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 11 Jan 2018 02:18:09 -0800 Subject: [PATCH] Renamed "% mod %" to "wrap % around %" --- lib/operators.nom | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/operators.nom b/lib/operators.nom index 05656ea..95441ea 100644 --- a/lib/operators.nom +++ b/lib/operators.nom @@ -76,7 +76,7 @@ compile [%var ^= %val] to code: "\(%var as lua) = \(%var as lua) ^ \(%val as lua compile [%var and= %val] to code: "\(%var as lua) = \(%var as lua) and\(%val as lua);" compile [%var or= %val] to code: "\(%var as lua) = \(%var as lua) or \(%val as lua);" compile [%var join= %val] to code: "\(%var as lua) = \(%var as lua) .. \(%val as lua);" -compile [%var mod= %val] to code: "\(%var as lua) = \(%var as lua) % \(%val as lua);" +compile [wrap %var around %val] to code: "\(%var as lua) = \(%var as lua) % \(%val as lua);" # Math Operators compile [%x + %y] to: "(\(%x as lua) + \(%y as lua))" @@ -84,7 +84,7 @@ compile [%x - %y] to: "(\(%x as lua) - \(%y as lua))" compile [%x * %y] to: "(\(%x as lua) * \(%y as lua))" compile [%x / %y] to: "(\(%x as lua) / \(%y as lua))" compile [%x ^ %y] to: "(\(%x as lua) ^ \(%y as lua))" -compile [%x mod %y] to: "(\(%x as lua) % \(%y as lua))" +compile [%x wrapped around %y, %x mod %y] to: "(\(%x as lua) % \(%y as lua))" # Comparison Operators compile [%x < %y] to: "(\(%x as lua) < \(%y as lua))"