Commit Graph
100 Commits
Author SHA1 Message Date
mike c8c9a477b7 Refactor common test set up and tear down code 2017-07-19 15:23:15 -04:00
mike 84ccac0edb Improve interpreter performance slightly 2017-04-13 09:07:30 -04:00
mike cbbcb4fe3e Clean up terminal tests 2017-04-12 09:16:09 -04:00
mike 63fd890ac6 Add history feature to the terminal
The history is accessed through the up/down arrow keys.

Resolves #8
2017-04-04 15:37:57 -04:00
mike fc96894d14 Fix text insertion at the end of the buffer 2017-03-20 16:20:28 -04:00
mike 38710e21bf Improve terminal performance 2017-03-20 11:18:36 -04:00
mike ac349c94cb Fix problems with FitNesse 2017-03-17 16:17:44 -04:00
mike c533b7c1d9 Start experimenting with lanterna 2017-03-17 16:07:25 -04:00
mike a21114ac7c Add a GENSYM-EQUAL function for unit testing macros
Some macro definitions were refactored along with their associated
unit tests.
2017-03-13 14:43:31 -04:00
mike b2d6f21f88 Add tests for macros 2017-03-13 10:15:05 -04:00
mike f2a481952d Add @Override annotations and clean up code 2017-03-13 09:58:30 -04:00
mike 655f49e612 Add DEFMACRO special function
Resolves #16
2017-03-10 15:08:42 -05:00
mike 16b9a4dd30 Add a simple GENSYM function
Resolves #18
2017-03-10 13:19:09 -05:00
mike e78e18df98 Add a simple GENSYM function 2017-03-10 13:14:16 -05:00
mike 8aa00fea27 Add a dynamic data structure example 2017-03-09 14:14:54 -05:00
mike d423fe9958 Convert the lisp unit tester into a class 2017-03-09 11:19:15 -05:00
mike b47abbaad5 Give assert a better failure message 2017-03-08 14:48:40 -05:00
mike c596d6868d Refactor some lisp code and tests 2017-03-08 11:14:44 -05:00
mike 87eb0204f5 Remove SETF function 2017-03-07 16:41:26 -05:00
mike 6cf45219f1 Refactor some lisp code 2017-03-07 16:27:11 -05:00
mike 736e230de9 Add LET* special function 2017-03-07 13:26:24 -05:00
mike d1060a8aad Add aliases for several functions 2017-03-07 13:15:40 -05:00
mike e9fead08c2 Add function to interest-compounder 2017-03-07 11:37:27 -05:00
mike 5f10396af8 Use function alias in validation messages
Resolves #9
2017-03-07 10:59:51 -05:00
mike 368f22a02b Rename the project 2017-03-07 10:20:22 -05:00
mike 77a341a1a7 Add more advanced lisp objects
Added a class to compute compound interest.

An alias for FUNCALL has been added: CALL

Refactored some acceptance tests to load code from files.
2017-03-06 16:52:06 -05:00
mike aa13394548 Add ability to run acceptance tests on files 2017-03-06 12:44:06 -05:00
mike e1c544f0ea Re-organize the lisp files 2017-03-06 11:00:18 -05:00
mike 946af24514 Minor cleanup of LIST 2017-03-03 15:57:16 -05:00
mike 311a3b4036 Cleaned up code and tests 2017-03-03 15:06:49 -05:00
mike 503b19a5e1 Resolves #14 - Load now keeps track of directories 2017-03-03 12:56:06 -05:00
mike ba53448c9d Exception checking unit tests were refactored 2017-03-03 12:07:23 -05:00
mike 1f1586d53c More class examples and script unit tests were added. 2017-03-03 11:56:27 -05:00
mike 010dfb48bc The running directory for FitNesse has been updated 2017-03-03 09:24:18 -05:00
mike 86def27f5c Acceptance tests have been refactored 2017-03-02 16:36:23 -05:00
mike 0eb8db36a8 Acceptance tests now run with JUnit 2017-03-02 15:26:21 -05:00
mike 4a91d197fd Expanded dlambda example some more 2017-03-02 14:26:47 -05:00
mike d55ebdd22f Resolves #13 - Exclusion based on type in ArgumentValidator 2017-03-02 11:39:07 -05:00
mike ef4c03a672 Expanded dlambda example 2017-03-02 10:29:59 -05:00
mike 2bd0c1a674 Major Refactor - Static constants and test case names 2017-03-02 09:54:23 -05:00
mike 49fee52284 An example class has been added 2017-03-01 16:45:48 -05:00
mike ba203d34b9 dlambda was converted for multiple method classes
Added several unit tests, including a failing one for CASE
Added an acceptance test for dlambda
2017-03-01 16:33:06 -05:00
mike 64e18fe076 Resolves #12 - &rest keyword added to lambda lists
Added unit tests and cleaned up some code
The setup for acceptance tests now cleans up the environment
2017-03-01 11:11:59 -05:00
mike 42191ec69d Parts of CASE and COND were refactored
Updated the terminology used in the code
Added test cases
Changed the format of error/warning messages
2017-02-28 16:16:43 -05:00
mike 4253145383 A few test cases were added for CASE 2017-02-28 15:07:37 -05:00
mike ab17d4c60e Static method in SET has been refactored 2017-02-28 15:04:40 -05:00
mike 05f75b627b Resolves #11 - The CASE special function has been added
Refactored some unit tests
2017-02-28 15:01:05 -05:00
mike 544df91c27 Simplified the EQUAL function logic 2017-02-28 12:26:18 -05:00
mike d2dfe23083 Resolves #10 - The equality predicates have been refactored 2017-02-28 11:54:19 -05:00
mike 50a3f3be67 Resolves #6 - PROGN Special Function (Form) 2017-02-27 15:36:17 -05:00
mike 5129f6c17b Minor cleanup in SYMBOL-FUNCTION 2017-02-27 14:54:31 -05:00
mike d3e3f52e59 Altered SYMBOL-FUNCTION behavior and cleaned up some code 2017-02-27 14:10:20 -05:00
mike 2ef285e45c Added a few extra unit tests for number prefixes 2017-02-27 13:37:56 -05:00
mike fb35884479 Resolves #7 - Allow prefixing of numbers 2017-02-27 13:34:04 -05:00
mike bf40feadec User defined functions now set up their scope correctly 2017-02-27 12:00:24 -05:00
mike b9466d2c5d Cleaned up a parameter name 2017-02-24 16:09:54 -05:00
mike c83db3721c Finished changing car/cdr to first/rest in the code 2017-02-24 16:00:05 -05:00
mike 0855789fde Started changing car/cdr to first/rest, modified acceptance test fixture 2017-02-24 11:07:06 -05:00
mike 496f30cded Added a java recursion library 2017-02-22 14:43:03 -05:00
mike 8cd813ed14 Formatted a source file 2017-02-22 14:38:32 -05:00
mike c55bb21501 Added the FitNesse wiki and a simple acceptance test 2017-02-22 14:33:36 -05:00
mike 6f2802828d Resolves #5 - Added FitNesse to the project 2017-02-22 14:11:40 -05:00
mike 013707e11a Static import of 'eval' 2017-02-21 13:59:56 -05:00
mike 0c3d3ae024 Resolves #1 - Added the IF Special Form 2017-02-21 12:35:47 -05:00
mike 35550c46ac Updates to the unit test framework 2017-02-15 09:29:57 -05:00
mike fa45434228 Added a tail recursive compound interest function 2017-02-14 16:55:48 -05:00
mike f76c587338 A lisp function to compute compound interest and unit tests 2017-02-14 15:24:38 -05:00
mike ea57fc8bae Added unit tests for RuntimeEnvironment 2017-02-14 14:28:47 -05:00
mike daf51fa198 Added a unit test for Characters 2017-02-08 12:56:24 -05:00
mike b55738231c Added unit tests for the RuntimeEnvironment 2017-02-07 14:38:21 -05:00
mike 65069561b8 Formatted LispInterpreterBuilderImpl 2017-02-06 13:47:05 -05:00
mike 993df541aa Organized imports in several files 2017-02-06 13:44:35 -05:00
mike b6d717ec1c Formatted several files 2017-02-06 13:43:27 -05:00
mike 913fd031c6 Only allow a single interpreter to be built
Renamed Environment to RuntimeEnvironment
2017-02-06 13:39:05 -05:00
mike 4719e14d7f Added unit tests for the FunctionTable and ExecutionContext 2017-02-06 12:02:19 -05:00
mike db2817f7be Refactored the symbol table code 2017-01-30 16:12:38 -05:00
mike 5351168763 Started refactoring UserDefinedFunction 2017-01-27 16:19:09 -05:00
mike 27fdc7b328 Added unit tests and refactored lambda 2017-01-27 14:31:41 -05:00
mike 79648cd96f Added unit tests and refactored defun 2017-01-27 12:12:27 -05:00
mike 5fd22b310f Simplified some predicate unit tests 2017-01-27 11:37:11 -05:00
mike fe880e1a02 Refactored tests to put the expected and actual values in the correct positions 2017-01-27 10:51:25 -05:00
mike 32db0b2520 Minor code formatting 2017-01-26 16:00:47 -05:00
mike 25f73e6d2e Added unit tests and refactored the load function 2017-01-26 15:58:15 -05:00
mike 919644d9c0 Added unit tests and refactored setf 2017-01-26 12:30:38 -05:00
mike ea8acd423f Refactored some code and added unit tests 2017-01-18 16:25:09 -05:00
mike b700b714f3 Minor update to the Environment class 2017-01-17 15:54:09 -05:00
mike a4cb521c7d Introduced global abstractions of input, output, and termination 2017-01-17 13:54:21 -05:00
mike 217c215efe Started major refactoring of several built in functions 2017-01-16 13:38:49 -05:00
mike 9a85cb62df Added missing testcase for new LispNumber constant 2017-01-13 14:10:13 -05:00
mike ba59b2a8cf Added more unit tests and refactored the code for several built in functions 2017-01-13 14:05:33 -05:00
mike e543de6f12 Refactored and added unit tests for listp 2017-01-13 12:52:05 -05:00
mike 3cb9d89616 Refactored more code and added unit tests for the built in functions 2017-01-04 13:57:16 -05:00
mike 9f80fc9abe Added unit tests and refactored the equal function 2016-12-30 10:22:25 -05:00
mike a0583f808c Added more unit tests for the built-in functions 2016-12-23 10:53:11 -05:00
mike 7de7996a27 Added function to the argument validator and refactored some code 2016-12-22 16:55:25 -05:00
mike 9bea0e6533 Started writing tests for the builtin functions 2016-12-22 10:32:48 -05:00
mike 715de2f220 Cleaned up some import statements 2016-12-21 14:42:45 -05:00
mike c4531b25e2 Added unit tests and did some refactoring 2016-12-20 12:03:37 -05:00
mike f925993093 Added unit tests 2016-12-19 13:29:31 -05:00
mike 089e3bd520 Refactored the eval package 2016-12-19 13:05:53 -05:00