51 Commits

Author SHA1 Message Date
4dc73b91c2 fix: top level block, even isolated, is treated as a lambda too 2025-06-08 00:42:08 +04:00
c0cf190452 fix: lambda now have correct closure 2025-06-08 00:30:13 +04:00
aba122c3e6 math and docs 2025-06-04 09:02:08 +04:00
75d90d7228 shuttle operator <=> 2025-06-04 08:29:09 +04:00
b331f4edaa for loop optimization 2025-06-03 18:13:16 +04:00
953e0e696b working CLI tool, versioning support, etc 2025-06-03 16:32:36 +04:00
512dda5984 fix #5 loop optimization
fixed arguments modifying bug
added samples and samplebooks w/tests
2025-06-03 10:44:42 +04:00
c167ebe6a8 +lambda after fn call as last argument 2025-06-02 18:59:47 +04:00
29c643eed2 fixed bug with callable argument in calls, added more docs 2025-06-02 18:33:45 +04:00
3cd2786ef0 while/else practical sample
!fixed else-while not calling on never run loop bug
2025-06-02 18:08:54 +04:00
f18038f9ca fixed package names to "lyng" 2025-06-02 14:07:23 +04:00
19a2a1d909 lambda syntax added 2025-06-02 14:02:01 +04:00
2344e19857 Renamed to lyng/3 2025-06-02 11:52:41 +04:00
dae09f0dc9 Renamed to lyng/2 2025-06-02 11:51:51 +04:00
e13dde68b5 Renamed to lyng 2025-06-02 11:38:17 +04:00
6ef94fff65 +list + / += Iterable
+CLI app started
2025-06-02 07:39:31 +04:00
939e391a20 fixed namespace/Math issue 2025-06-02 06:28:40 +04:00
c65f711ee3 OO: added inheritance, Collection, Iterator, Iterable, Array. Range is rewritten to be Iterable. Math namespace is temporarily broken (to be updated to new ObjClass model). 2025-06-01 17:48:24 +04:00
86d59abfbc missed file 2025-05-31 23:44:07 +04:00
d2c732ceef for in range, range size and indexing 2025-05-31 23:43:35 +04:00
dcab60b7bb for in range, range size and indexing 2025-05-31 23:25:08 +04:00
b82a97ed20 Ranges! 2025-05-31 18:53:42 +04:00
3908b8ee9f +for-else-labels-break is running
+String now is indexed with Char instances, size supported
+Char type and char constants
2025-05-31 15:08:11 +04:00
f7b35c7576 while-else loop and string.startsWith 2025-05-30 13:50:37 +04:00
1479df4426 +better comparison
+splat arguments in calls
2025-05-30 12:05:21 +04:00
b56b5c521d lists modification: insert, remove, offset-end indexing, comparison. 2025-05-30 11:02:52 +04:00
c18345823b arrays started: literals, size, splats, index access RW 2025-05-30 01:13:40 +04:00
f881faf89f fixed problem with var initialization with val
added support for by-value types and in-place assignment
2025-05-29 11:48:04 +04:00
ca93d73b9c better checks for mutability, sipport for inplace mutation with assign() 2025-05-29 01:35:02 +04:00
9a9f712cec refactored operators for OO overloading (and faster), assignment is not expression and += *= /= -= %= added 2025-05-28 19:11:59 +04:00
72f637e7de some cleanup 2025-05-28 15:07:38 +04:00
2130974929 fixed wrong file name in tests 2025-05-28 14:37:54 +04:00
47c061d2b4 class constants added and class instances for integral types 2025-05-28 14:36:04 +04:00
f885300d18 converted namespaces to objects (coming to static objects, singletons) 2025-05-28 14:01:44 +04:00
d21544ca5d first OO features: x::class, x.method(1,2,3) builting Real.roundToInt 2025-05-28 11:44:55 +04:00
361c1d5b13 big refactoring: all tests passed 2025-05-26 23:51:22 +04:00
eba29aedb7 big refactoring towards OO support just started 2025-05-26 18:53:59 +04:00
baf9eab3ba int++ and int-- 2025-05-21 13:41:01 +04:00
9ae9752634 removed unnecessary debug traces 2025-05-20 23:07:25 +04:00
758f49603f closure tests and fix 2025-05-20 22:59:15 +04:00
ebeed385e9 while-continue with labels and docs/tests 2025-05-20 16:47:57 +04:00
22fbd5584b docs+doctest, while loop with break and labels for non-local breaks 2025-05-20 16:31:22 +04:00
0e065e0d7c +if/else statement
+// comments
2025-05-19 12:42:46 +04:00
60db9f3b95 string concatenation 2025-05-19 11:26:00 +04:00
95e68d6e2a comparison operators + some optimizations 2025-05-19 11:17:53 +04:00
3dd98131e7 parentheses, more operators, some docs 2025-05-18 18:34:44 +04:00
166b1fa0d5 +fn definitions and calls, closures 2025-05-18 14:41:01 +04:00
408543d191 +var and val 2025-05-18 12:50:01 +04:00
50986fbac5 +namespaces with direct resolution
+national chars in ids
2025-05-18 11:59:45 +04:00
1f2afbbe38 +namespaces with direct resolution
+national chars in ids
2025-05-18 11:58:38 +04:00