Commit Graph

  • d3b43d785e got random register test working Richard Harrington 2013-08-06 12:49:44 -04:00
  • 623bfea415 changed name of foundry namespace to assembler Richard Harrington 2013-08-06 12:00:30 -04:00
  • 54161691fa made shorter aliases (without 'robotwar.' prefix) for all namespaces Richard Harrington 2013-08-06 11:34:51 -04:00
  • 4af58b61ab changed robot module dependencies from 'use' to 'require' Richard Harrington 2013-08-06 11:26:37 -04:00
  • e7bf17d21f updated readme take 2 Richard Harrington 2013-08-05 23:34:33 -04:00
  • cce235fd1c updated readme with links Richard Harrington 2013-08-05 23:33:33 -04:00
  • 8f1653bb66 bug fixed; all existing tests running. No tests yet for new special-purpose registers. Richard Harrington 2013-08-05 21:53:51 -04:00
  • 041a639203 wrote special-purpose registers: X, Y, DAMAGE, INDEX, DATA, RANDOM. Brain tests now failing. Richard Harrington 2013-08-05 21:40:23 -04:00
  • 8091e1f216 fixed typo, got push-test in brain-test working Richard Harrington 2013-08-05 00:36:13 -04:00
  • 42dade809c updated the hacky inspection code in core.clj to work with the new robot and world apis Richard Harrington 2013-08-05 00:35:17 -04:00
  • 28efa906c2 got basic skeletons of robot and world up and running, all tests but one passing in brain-test Richard Harrington 2013-08-05 00:26:05 -04:00
  • 82b998246a whitespace change to brain-test Richard Harrington 2013-08-04 23:56:31 -04:00
  • 67f30c959c changed keyword 'program' to 'obj-code' (more specific) Richard Harrington 2013-08-04 22:48:13 -04:00
  • 675c493609 removed commented out debugging line Richard Harrington 2013-08-04 22:27:46 -04:00
  • edf835cd02 rearranged dependencies so the register names are known only to robot, and passed in function calls to brain Richard Harrington 2013-08-04 22:18:24 -04:00
  • 63256d8691 rearranged order of arguments to parse, parse-token and assemble, to make more sense Richard Harrington 2013-08-04 22:08:20 -04:00
  • 37deec17de rearranged dependencies so that all calls to foundry/assemble are made from brain/init-brain, and higher levels pass in source code to init/brain Richard Harrington 2013-08-04 21:36:33 -04:00
  • 63d678f406 updated docstrings in brain.clj Richard Harrington 2013-08-04 21:06:05 -04:00
  • c358ce0e54 changed robot.brain to require kernel-lexicon to be fully qualified. Richard Harrington 2013-08-04 21:01:58 -04:00
  • 1af74d1630 refactored parse and parse-token (parse-token is back to original) Richard Harrington 2013-08-04 18:52:10 -04:00
  • e3c96eaa25 Merge branch 'gnarly-refactoring' Richard Harrington 2013-08-03 16:09:09 -04:00
  • 2c274f3d73 added a todo.MD file with a list of things I need to do next, in order Richard Harrington 2013-08-03 16:08:10 -04:00
  • 3ce3cee500 removed resolved issues from issues.txt Richard Harrington 2013-08-03 16:04:41 -04:00
  • 1d884c5de2 got push-test (pushing to register) to work in brain-test Richard Harrington 2013-08-03 14:21:26 -04:00
  • 5865a9f570 moved 'get-world' functionality (allows world-finding by world-tick-idx and robot-idx) into helper function in brains-test Richard Harrington 2013-08-03 14:10:09 -04:00
  • 981d2fe23b got gosub-test working Richard Harrington 2013-08-03 14:01:53 -04:00
  • 5eca3965cc wrote informal inspection function for core.clj, that reports robot-states from a sequence of worlds, given world-tick-idx and robot-idx Richard Harrington 2013-08-03 13:52:10 -04:00
  • 817a3e057d basic tests of branching and arithmetic passin, in brain-test Richard Harrington 2013-08-03 12:30:47 -04:00
  • e2b4369960 continuing on apace with the gnarly refactoring (pretty much despairing of decent commit messages at this point) Richard Harrington 2013-08-03 03:39:18 -04:00
  • 0c988d61f4 commented out most of these high-level files till the refactoring is done Richard Harrington 2013-08-03 03:38:01 -04:00
  • 67c599062c fully qualified robotwar.game-lexicon in foundry-test Richard Harrington 2013-08-02 23:10:40 -04:00
  • c43c0113a2 Merge branch 'master' into gnarly-refactoring Richard Harrington 2013-08-02 18:12:58 -04:00
  • ea79c7bfd3 fully qualified required names in foundry.clj Richard Harrington 2013-08-02 17:48:55 -04:00
  • 134d5ac439 even more gruesome refactoring Richard Harrington 2013-08-02 17:48:32 -04:00
  • 9112c82dc6 making progress on refactoring, especially in brain (formerly robot). made new file called robot to represent external robot state Richard Harrington 2013-08-02 01:36:17 -04:00
  • 6e04c076a6 grinding along with the refactoring Richard Harrington 2013-08-01 20:01:08 -04:00
  • 4a8f83ad95 living on hope Richard Harrington 2013-08-01 16:13:20 -04:00
  • 08dcf38214 refactored, changed module names, untangled dependencies between kernel language and register names. Also removed 'repl' Richard Harrington 2013-07-31 20:55:15 -04:00
  • d59467d2d2 rewrote doc string for make-instr-pair Richard Harrington 2013-07-31 19:11:43 -04:00
  • 2dbd496442 revised informal testing junk in core.clj Richard Harrington 2013-07-31 17:38:55 -04:00
  • e1e25fcbe7 moved tokens' :line and :pos fields into the metadata map, refactored to preserve metadata, wrote a test for that Richard Harrington 2013-07-31 17:38:33 -04:00
  • d37a87e810 minor change: for changing equality, moved from set notation to equals sign Richard Harrington 2013-07-31 16:03:15 -04:00
  • 0d2ef55c14 added test for INDEX/DATA pair of registers Richard Harrington 2013-07-31 15:42:04 -04:00
  • dacfaf34db refactored exec-test and wrote new test for pushing and pulling from RANDOM register Richard Harrington 2013-07-31 15:33:09 -04:00
  • e15147c679 rearranged indexing of registers Richard Harrington 2013-07-31 14:56:01 -04:00
  • b331a43f79 changed name 'compile' to 'assemble', now don't have to exclude loading of clojure.core/compile Richard Harrington 2013-07-31 14:13:33 -04:00
  • 64cb83cb3b altered informal testing junk in core.clj Richard Harrington 2013-07-30 18:32:52 -04:00
  • 5c15b98861 got simple printing of world almost working Richard Harrington 2013-07-30 18:32:37 -04:00
  • 7e3391fc11 got rid of the special 'nth-state' helper function in exec-test.clj Richard Harrington 2013-07-30 14:59:26 -04:00
  • a093273a12 changed name of gosub-test Richard Harrington 2013-07-30 11:53:27 -04:00
  • 4276409d9c wrote init-world function to create a world-state Richard Harrington 2013-07-30 11:44:36 -04:00
  • 42676dff1c added docstring to tick-robot Richard Harrington 2013-07-30 08:23:05 -04:00
  • 099e20d732 refactored tick-robot to use 'into' instead of multiple assocs and an increment function Richard Harrington 2013-07-29 18:35:47 -04:00
  • b5ba742bc2 corrected registers-with-effect-on-world list again Richard Harrington 2013-07-29 18:34:57 -04:00
  • e888baf4e2 added tests for robot-tick Richard Harrington 2013-07-29 17:30:35 -04:00
  • 52554ab4c5 added SPEEDX and SPEEDY to list of registers which have an effect on the world Richard Harrington 2013-07-29 17:00:32 -04:00
  • a964ff9815 fixed bug causing ENDSUB not to parse properly; also added tests Richard Harrington 2013-07-29 15:09:51 -04:00
  • 6bc36bc579 loaded core.match Richard Harrington 2013-07-29 15:09:05 -04:00
  • 854359de18 minor change; restored testing with equals sign rather than tset literals for one item Richard Harrington 2013-07-29 15:08:24 -04:00
  • 27eeb56e83 altered parse and compile to add beginnings of error-checking framework (also added tests for this) Richard Harrington 2013-07-29 12:57:20 -04:00
  • c20ed88809 extensive refactoring and shortening in create/map-labels Richard Harrington 2013-07-29 11:46:27 -04:00
  • 79149f8a8f minor line clarity change in create/disambiguate-minus-signs Richard Harrington 2013-07-29 11:45:42 -04:00
  • 43a9a97078 refactored destructuring of function and let parameters in create/disambiguate-minus-signs Richard Harrington 2013-07-29 11:44:57 -04:00
  • 75b005aea9 refactored to use 'into' to merge hash-maps, instead of rebuilding them from scratch or doing multiple assocs Richard Harrington 2013-07-29 11:05:14 -04:00
  • 36e54daaed added support for parsing multiple lines with comments; also added line number metadata, and tests for all this Richard Harrington 2013-07-29 00:40:22 -04:00
  • fbc33868f9 rewrote create/repl to use pprint Richard Harrington 2013-07-28 23:06:49 -04:00
  • 184fd500b5 removed pretty-printing feature from robotwar.create; now that I have discovered pprint Richard Harrington 2013-07-28 23:00:56 -04:00
  • fb6e502b8b rewrote tests for new namespaces Richard Harrington 2013-07-28 22:58:48 -04:00
  • 9bfa7c213e restored full 'robotwar' name everywhere, instead of 'rw' Richard Harrington 2013-07-28 22:34:53 -04:00
  • f8c8d38ff2 got reading and evaling of operators working Richard Harrington 2013-07-28 15:00:05 -04:00
  • bab5171d80 in the middle of trying to debug the addition operator Richard Harrington 2013-07-28 13:36:51 -04:00
  • d1a25796cf added some informal tests to core.clj, to test exec/tick-robot Richard Harrington 2013-07-28 13:36:21 -04:00
  • 049abdc2c2 added init-robot function to exec, to generate an initial robot state Richard Harrington 2013-07-28 13:35:27 -04:00
  • fb814eb14e deleted old commented-out code Richard Harrington 2013-07-28 13:34:46 -04:00
  • b619b455e2 fixed bug in tick-robot causing assoc to add new values as keys Richard Harrington 2013-07-28 12:09:41 -04:00
  • 438b2382c9 got core, exec, create, lexicon namespaces going Richard Harrington 2013-07-28 12:00:32 -04:00
  • 4ce2f3a61b halfway towards separating out lexicon, create, and eval namespaces Richard Harrington 2013-07-28 04:42:47 -04:00
  • 5a0a80c944 made separate namespace for lexicon Richard Harrington 2013-07-28 02:55:05 -04:00
  • dbd1007a84 shortened main namespace name from robotwar to rw Richard Harrington 2013-07-28 01:31:03 -04:00
  • abae4d35b0 converted to proper ns macro format Richard Harrington 2013-07-28 01:13:21 -04:00
  • b0fb5d6147 almost got robot-tick function working Richard Harrington 2013-07-25 12:53:10 -04:00
  • c01dfd0923 added issues.txt file Richard Harrington 2013-07-25 12:51:54 -04:00
  • 4cfac7d461 wrote map-labels function to map the labels in a token-string. including tests. Richard Harrington 2013-07-22 23:03:57 -04:00
  • 14a77a2f8b added tests for rw-compile Richard Harrington 2013-07-22 22:45:13 -04:00
  • 655c15c68e Merge branch 'master' of github.com:richardharrington/hs-robotwar Richard Harrington 2013-07-19 16:35:06 -04:00
  • 411b9013ef changed robotwar files & folders to remove 'hs-' prefix Richard Harrington 2013-07-19 16:32:47 -04:00
  • 6270ea278d changed robotwar files & folders to remove 'hs-' prefix Richard Harrington 2013-07-19 16:32:47 -04:00
  • 37c2428592 updated readme to reflect name change away from the 'hs-' prefix Richard Harrington 2013-07-19 13:18:22 -07:00
  • b01e03ba33 got working the compiling into command-arg pairs Richard Harrington 2013-07-17 16:43:11 -04:00
  • c4643b285d removed unused 'merge-tokens' function (logic is now in disambiguate-minus-signs Richard Harrington 2013-07-16 18:24:12 -04:00
  • c1afcd9d79 changed parse-token to loop and recur Richard Harrington 2013-07-16 17:54:42 -04:00
  • b136663305 pulled the disambiguation of minus signs out of the parsing step, put it afterwards Richard Harrington 2013-07-16 15:14:06 -04:00
  • 6b609f1f94 refactored return-err function to use 'constantly' Richard Harrington 2013-07-16 12:13:45 -04:00
  • 31ff2272e2 fixed bug in regex in valid-word function Richard Harrington 2013-07-16 12:11:34 -04:00
  • 2cadd6a277 changed str-int to use try/catch instead of a regular expression check Richard Harrington 2013-07-16 12:04:10 -04:00
  • ae1c991310 inlined the function adding pos metadata to lexed tokens Richard Harrington 2013-07-16 12:01:53 -04:00
  • 32578ebcef regularized the declaration of the operators so it's a set of strings like everything else Richard Harrington 2013-07-16 11:51:58 -04:00
  • 242c36c104 literalized the declaration of the set of registers Richard Harrington 2013-07-16 11:51:32 -04:00
  • 92d918fef3 Merge branch 'kevinscodereview' Richard Harrington 2013-07-16 11:27:08 -04:00
  • 8c2a8f7841 chose for comprehension with :let and :when bindings option for parse-token Richard Harrington 2013-07-16 11:26:36 -04:00