Commit Graph

17 Commits

Author SHA1 Message Date
Leon Mika 24a484ab77 Allowed foreach to pull from the pipe 2024-04-24 20:12:39 +10:00
Leon Mika 63762e633c dramatic simplification of command evaluation
- Removed the notion of streams
- Modified pipes such that any object can be passed through pipe. Now, the first argument will be used if the command is invoked via a pipe
2024-04-23 22:02:06 +10:00
Leon Mika 4c532e5005 Added support for listable proxy objects
These are things like slices that can be iterated over. At the moment, they're only recognised by foreach.
2024-04-23 00:41:36 +00:00
Leon Mika 690112fee1 Fixed some buggy unit tests 2024-04-18 22:31:29 +10:00
Leon Mika 7e06f38802 Working out the tests 2024-04-18 22:24:19 +10:00
Leon Mika 4b91bff641 Started working on map functions 2024-04-18 20:53:25 +10:00
Leon Mika fe15730769 First cut of procs
These capture the context, making them useful as lambdas
2024-04-18 20:26:02 +10:00
Leon Mika c0f5cfb180 Added the foreach loop 2024-04-16 22:28:12 +10:00
Leon Mika d6cc449b40 Added macros and the if macro 2024-04-13 21:46:50 +10:00
Leon Mika 730dc46095 Working on multi-line statements 2024-04-13 09:25:16 +10:00
Leon Mika 82a6eac872 Some more test updates 2024-04-11 22:32:38 +10:00
Leon Mika 922acd3751 Started writing some tests 2024-04-11 22:05:05 +10:00
Leon Mika 41a4d7fd25 Added variables and variable setting
Just string variables for name
2024-04-11 20:58:59 +10:00
Leon Mika 1506692198 Re-arranged invoke with stream 2024-04-11 20:47:59 +10:00
Leon Mika fd177280d2 Started working on placeholders 2024-04-10 22:19:11 +10:00
Leon Mika 3b3bac4a7f Added the notion of streams
This includes a stream to a file
2024-04-10 21:58:06 +10:00
Leon Mika 781a761ead Initial version of prototype cmdlang 2024-04-10 20:45:58 +10:00