about summary refs log tree commit diff stats
path: root/chessboard.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-13 09:09:22 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-13 09:11:16 -0700
commit01caf342d072115c27926b1a61c2fc75ab9fbee0 (patch)
tree72d8a05a5e90c61f4cbab201e3b2d6625199bb8f /chessboard.mu
parent12cc442f4aa4286150aa12316e74da38bc35b96c (diff)
downloadmu-01caf342d072115c27926b1a61c2fc75ab9fbee0.tar.gz
1362
Mu allows us to use multiple ingredients/products without commas, but
make sure we don't.

  $ grep "<- [^ ]\+ [^#\[,]* [^#\[,]*$" *
  $ grep "^[ ]*[^ #,][^#,]* [^#,]* <- " *
Diffstat (limited to 'chessboard.mu')
-rw-r--r--chessboard.mu4
1 files changed, 2 insertions, 2 deletions
diff --git a/chessboard.mu b/chessboard.mu
index adae42b9..93867fd4 100644
--- a/chessboard.mu
+++ b/chessboard.mu
@@ -316,7 +316,7 @@ recipe read-rank [
 #? ] #? 1
   # assert'1' <= rank <= '8'
   {
-    above-min:boolean <- greater-or-equal rank:integer 0:literal
+    above-min:boolean <- greater-or-equal rank:integer, 0:literal
     break-if above-min:boolean
     error-message:address:array:character <- new [rank too low: ]
     print-string screen:address, error-message:address:array:character
@@ -324,7 +324,7 @@ recipe read-rank [
     reply 0:literal/dummy, 0:literal/quit, 1:literal/error
   }
   {
-    below-max:boolean <- lesser-or-equal rank:integer 7:literal
+    below-max:boolean <- lesser-or-equal rank:integer, 7:literal
     break-if below-max:boolean
     error-message:address:array:character <- new [rank too high: ]
     print-string screen:address, error-message:address:array:character