Renamed "% mod %" to "wrap % around %"

This commit is contained in:
Bruce Hill 2018-01-11 02:18:09 -08:00
parent 1c6b660d6b
commit bfe66a70e6

View File

@ -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))"