Commit graph

15 commits

Author SHA1 Message Date
Leon Mika 142abeb990 Added iterators
Iterators are an unbounded sequence of elements that can only be consumed one-by-one.
2025-03-23 12:00:58 +11:00
Leon Mika 23f0f16d26 Some new features and bugfixes
- Fixed parse bug which would result in an 'unrecognised }' when a comment appeared before a }
- Added support for ${} variables interpolation in strings
- Added support for $() for sub-expression interoplation in strings
- Fixed bug which was preventing dot dereferencing in array and hash literals
- Defined error type for when the result is not convertable to go
2025-03-23 11:41:41 +11:00
Leon Mika 9fc4f50452 Added single and double quoted string
Also started working on string interpolation
2025-03-23 11:40:00 +11:00
Leon Mika 5392050593 issue-2: added some more string functions 2025-03-23 11:30:50 +11:00
Leon Mika 35823a98fe issue-1: added tests for cat 2025-03-23 11:29:23 +11:00
Leon Mika 9f1bedfdac issue-1: added add, sub, mup, div, and mod 2025-03-23 11:28:28 +11:00
Leon Mika ca962f5c83 issue-1: Added str and int 2025-03-23 11:27:11 +11:00
Leon Mika 0138270a69 issue-1: added gt, ge, lt, le 2025-03-23 11:24:48 +11:00
Leon Mika 1c3346947b Completed 'eq' cases and added 'ne' 2025-03-23 11:22:44 +11:00
Leon Mika 89ec653eb0 Added the seq builtin 2025-03-23 11:19:41 +11:00
Leon Mika 8ee72b877b Added support for calling foreach with an invokable builtin 2025-03-23 11:19:26 +11:00
Leon Mika 0d973007c8 Fixed the issue with colons in ident 2025-03-23 11:18:42 +11:00
Leon Mika dc7388ef4e Fixed a few bugs with the 'index' builtin 2025-03-23 11:18:06 +11:00
Leon Mika abbae1a08f Added break, continue, and return 2025-03-23 11:17:51 +11:00
Leon Mika 0b8c8a0d04 Renamed project to ucl 2025-03-23 11:15:59 +11:00
Renamed from cmdlang/testbuiltins_test.go (Browse further)