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 |
|
Richard Harrington
|
411b9013ef
|
changed robotwar files & folders to remove 'hs-' prefix
|
2013-07-19 16:34:44 -04:00 |
|
Richard Harrington
|
6270ea278d
|
changed robotwar files & folders to remove 'hs-' prefix
|
2013-07-19 16:32:47 -04:00 |
|
Richard Harrington
|
37c2428592
|
updated readme to reflect name change away from the 'hs-' prefix
|
2013-07-19 13:18:22 -07:00 |
|
Richard Harrington
|
b01e03ba33
|
got working the compiling into command-arg pairs
|
2013-07-18 10:49:40 -04:00 |
|
Richard Harrington
|
c4643b285d
|
removed unused 'merge-tokens' function (logic is now in disambiguate-minus-signs
|
2013-07-16 18:24:12 -04:00 |
|
Richard Harrington
|
c1afcd9d79
|
changed parse-token to loop and recur
|
2013-07-16 17:54:42 -04:00 |
|
Richard Harrington
|
b136663305
|
pulled the disambiguation of minus signs out of the parsing step, put it afterwards
|
2013-07-16 15:14:06 -04:00 |
|
Richard Harrington
|
6b609f1f94
|
refactored return-err function to use 'constantly'
|
2013-07-16 12:13:45 -04:00 |
|
Richard Harrington
|
31ff2272e2
|
fixed bug in regex in valid-word function
|
2013-07-16 12:11:53 -04:00 |
|
Richard Harrington
|
2cadd6a277
|
changed str-int to use try/catch instead of a regular expression check
|
2013-07-16 12:04:10 -04:00 |
|
Richard Harrington
|
ae1c991310
|
inlined the function adding pos metadata to lexed tokens
|
2013-07-16 12:01:53 -04:00 |
|
Richard Harrington
|
32578ebcef
|
regularized the declaration of the operators so it's a set of strings like everything else
|
2013-07-16 11:51:58 -04:00 |
|
Richard Harrington
|
242c36c104
|
literalized the declaration of the set of registers
|
2013-07-16 11:51:32 -04:00 |
|
Richard Harrington
|
92d918fef3
|
Merge branch 'kevinscodereview'
|
2013-07-16 11:27:08 -04:00 |
|
Richard Harrington
|
8c2a8f7841
|
chose for comprehension with :let and :when bindings option for parse-token
|
2013-07-16 11:26:36 -04:00 |
|
Richard Harrington
|
0db4cf7f7a
|
imported kevin's three token-parser choices into core.clj
|
2013-07-16 11:20:26 -04:00 |
|
Richard Harrington
|
4d368578cb
|
separated out the comment-stripping step completely from the lexing step
|
2013-07-14 23:01:37 -04:00 |
|
Richard Harrington
|
b5c392114a
|
refactored re-seq-with-pos ONE MORE TIME
|
2013-07-14 23:01:11 -04:00 |
|
Richard Harrington
|
1aedb1ee29
|
refactored re-seq-with-pos AGAIN
|
2013-07-14 16:59:43 -04:00 |
|
Richard Harrington
|
9e391344da
|
refactored re-seq-with-pos to be more elegant, possibly slightly slower
|
2013-07-13 15:35:56 -04:00 |
|
Richard Harrington
|
3b03274c2e
|
added back stripping of comments which had been lost when switching to regex
|
2013-07-13 13:29:36 -04:00 |
|
Richard Harrington
|
b0c4f798ec
|
refactored re-find to re-matches for whole words
|
2013-07-13 13:10:43 -04:00 |
|
Richard Harrington
|
90152aa425
|
minor refactoring of adding operators to set of commands
|
2013-07-13 13:06:48 -04:00 |
|
Richard Harrington
|
0ca4fac91c
|
Merge branch 'lex-re'
|
2013-07-13 13:00:56 -04:00 |
|
Richard Harrington
|
0df38b12b8
|
finished converting the lexer to regexp, eliminating need for core.match
|
2013-07-13 13:00:38 -04:00 |
|
Richard Harrington
|
f2dce5fe2a
|
Revert "incredibly minor whitespace issue" -- this was a mistake
This reverts commit cdfb630712 .
|
2013-07-13 12:22:03 -04:00 |
|
Richard Harrington
|
5cbda73aba
|
halfway towards converted the lexer to just use regular expressions
|
2013-07-13 12:17:09 -04:00 |
|