mirror of
https://github.com/richardharrington/robotwar.git
synced 2024-10-03 03:55:43 +00:00
literalized the declaration of the set of registers
This commit is contained in:
parent
92d918fef3
commit
242c36c104
@ -5,8 +5,9 @@
|
||||
|
||||
(def operators "-+*/=#<>")
|
||||
|
||||
(def registers (union (set (map #(-> % char str) (range (int \A) (inc (int \Z)))))
|
||||
#{"AIM" "SHOT" "RADAR" "DAMAGE" "SPEEDX" "SPEEDY" "RANDOM" "INDEX"}))
|
||||
(def registers #{ "A" "B" "C" "D" "E" "F" "G" "H" "I" "J" "K" "L" "M"
|
||||
"N" "O" "P" "Q" "R" "S" "T" "U" "V" "W" "X" "Y" "Z"
|
||||
"AIM" "SHOT" "RADAR" "DAMAGE" "SPEEDX" "SPEEDY" "RANDOM" "INDEX"})
|
||||
|
||||
(def commands (union (set (map str operators))
|
||||
#{"TO" "IF" "GOTO" "GOSUB" "ENDSUB"}))
|
||||
|
Loading…
Reference in New Issue
Block a user