Commit Graph

110 Commits

Author SHA1 Message Date
Richard Harrington
3ce3cee500 removed resolved issues from issues.txt 2013-08-03 16:04:41 -04:00
Richard Harrington
ea79c7bfd3 fully qualified required names in foundry.clj 2013-08-02 17:48:55 -04:00
Richard Harrington
08dcf38214 refactored, changed module names, untangled dependencies between kernel language and register names. Also removed 'repl' 2013-07-31 20:55:15 -04:00
Richard Harrington
d59467d2d2 rewrote doc string for make-instr-pair 2013-07-31 19:11:43 -04:00
Richard Harrington
2dbd496442 revised informal testing junk in core.clj 2013-07-31 17:38:55 -04:00
Richard Harrington
e1e25fcbe7 moved tokens' :line and :pos fields into the metadata map, refactored to preserve metadata, wrote a test for that 2013-07-31 17:38:33 -04:00
Richard Harrington
d37a87e810 minor change: for changing equality, moved from set notation to equals sign 2013-07-31 16:03:15 -04:00
Richard Harrington
0d2ef55c14 added test for INDEX/DATA pair of registers 2013-07-31 15:42:04 -04:00
Richard Harrington
dacfaf34db refactored exec-test and wrote new test for pushing and pulling from RANDOM register 2013-07-31 15:33:09 -04:00
Richard Harrington
e15147c679 rearranged indexing of registers 2013-07-31 14:56:01 -04:00
Richard Harrington
b331a43f79 changed name 'compile' to 'assemble', now don't have to exclude loading of clojure.core/compile 2013-07-31 14:30:40 -04:00
Richard Harrington
64cb83cb3b altered informal testing junk in core.clj 2013-07-30 18:32:52 -04:00
Richard Harrington
5c15b98861 got simple printing of world almost working 2013-07-30 18:32:37 -04:00
Richard Harrington
7e3391fc11 got rid of the special 'nth-state' helper function in exec-test.clj 2013-07-30 14:59:26 -04:00
Richard Harrington
a093273a12 changed name of gosub-test 2013-07-30 11:53:27 -04:00
Richard Harrington
4276409d9c wrote init-world function to create a world-state 2013-07-30 11:44:36 -04:00
Richard Harrington
42676dff1c added docstring to tick-robot 2013-07-30 08:23:05 -04:00
Richard Harrington
099e20d732 refactored tick-robot to use 'into' instead of multiple assocs and an increment function 2013-07-29 18:35:47 -04:00
Richard Harrington
b5ba742bc2 corrected registers-with-effect-on-world list again 2013-07-29 18:34:57 -04:00
Richard Harrington
e888baf4e2 added tests for robot-tick 2013-07-29 17:30:35 -04:00
Richard Harrington
52554ab4c5 added SPEEDX and SPEEDY to list of registers which have an effect on the world 2013-07-29 17:00:32 -04:00
Richard Harrington
a964ff9815 fixed bug causing ENDSUB not to parse properly; also added tests 2013-07-29 15:09:51 -04:00
Richard Harrington
6bc36bc579 loaded core.match 2013-07-29 15:09:05 -04:00
Richard Harrington
854359de18 minor change; restored testing with equals sign rather than tset literals for one item 2013-07-29 15:08:24 -04:00
Richard Harrington
27eeb56e83 altered parse and compile to add beginnings of error-checking framework (also added tests for this) 2013-07-29 12:57:20 -04:00
Richard Harrington
c20ed88809 extensive refactoring and shortening in create/map-labels 2013-07-29 11:46:27 -04:00
Richard Harrington
79149f8a8f minor line clarity change in create/disambiguate-minus-signs 2013-07-29 11:45:42 -04:00
Richard Harrington
43a9a97078 refactored destructuring of function and let parameters in create/disambiguate-minus-signs 2013-07-29 11:44:57 -04:00
Richard Harrington
75b005aea9 refactored to use 'into' to merge hash-maps, instead of rebuilding them from scratch or doing multiple assocs 2013-07-29 11:40:59 -04:00
Richard Harrington
36e54daaed added support for parsing multiple lines with comments; also added line number metadata, and tests for all this 2013-07-29 00:40:22 -04:00
Richard Harrington
fbc33868f9 rewrote create/repl to use pprint 2013-07-28 23:06:49 -04:00
Richard Harrington
184fd500b5 removed pretty-printing feature from robotwar.create; now that I have discovered pprint 2013-07-28 23:00:56 -04:00
Richard Harrington
fb6e502b8b rewrote tests for new namespaces 2013-07-28 22:58:48 -04:00
Richard Harrington
9bfa7c213e restored full 'robotwar' name everywhere, instead of 'rw' 2013-07-28 22:37:18 -04:00
Richard Harrington
f8c8d38ff2 got reading and evaling of operators working 2013-07-28 15:00:05 -04:00
Richard Harrington
bab5171d80 in the middle of trying to debug the addition operator 2013-07-28 13:36:51 -04:00
Richard Harrington
d1a25796cf added some informal tests to core.clj, to test exec/tick-robot 2013-07-28 13:36:21 -04:00
Richard Harrington
049abdc2c2 added init-robot function to exec, to generate an initial robot state 2013-07-28 13:35:27 -04:00
Richard Harrington
fb814eb14e deleted old commented-out code 2013-07-28 13:34:46 -04:00
Richard Harrington
b619b455e2 fixed bug in tick-robot causing assoc to add new values as keys 2013-07-28 12:09:41 -04:00
Richard Harrington
438b2382c9 got core, exec, create, lexicon namespaces going 2013-07-28 12:00:32 -04:00
Richard Harrington
4ce2f3a61b halfway towards separating out lexicon, create, and eval namespaces 2013-07-28 04:42:47 -04:00
Richard Harrington
5a0a80c944 made separate namespace for lexicon 2013-07-28 02:55:05 -04:00
Richard Harrington
dbd1007a84 shortened main namespace name from robotwar to rw 2013-07-28 01:31:03 -04:00
Richard Harrington
abae4d35b0 converted to proper ns macro format 2013-07-28 01:19:55 -04:00
Richard Harrington
b0fb5d6147 almost got robot-tick function working 2013-07-25 12:53:10 -04:00
Richard Harrington
c01dfd0923 added issues.txt file 2013-07-25 12:51:54 -04:00
Richard Harrington
4cfac7d461 wrote map-labels function to map the labels in a token-string. including tests. 2013-07-22 23:03:57 -04:00
Richard Harrington
14a77a2f8b added tests for rw-compile 2013-07-22 22:45:13 -04:00
Richard Harrington
655c15c68e Merge branch 'master' of github.com:richardharrington/hs-robotwar 2013-07-19 16:35:06 -04:00