Commit graph

35 commits

Author SHA1 Message Date
antirez
6bfda37ea1 README: Aocla objects and parser. 2023-01-31 22:36:20 +01:00
antirez
a4e5be2ab5 make-tuple should set non quoted state. 2023-01-31 13:22:12 +01:00
antirez
2a0dd067d3 make-tuple and a few memory fixes. 2023-01-31 12:57:24 +01:00
antirez
b4e37ec848 Native and polymorphic cat. 2023-01-31 12:25:47 +01:00
antirez
d4d5b59bca Fix operator order in math procedures. 2023-01-30 18:08:49 +01:00
antirez
965ab21953 Add a few example programs. 2023-01-30 11:45:55 +01:00
antirez
ea3886d0cb Remove comma from list printing: use same syntax as language. 2023-01-30 11:35:42 +01:00
antirez
3fdd4d87ef cat procedure added to standard lib. 2023-01-30 11:31:57 +01:00
antirez
daa29ee819 Add library procedures: map, foreach, first, rest. 2023-01-30 11:18:37 +01:00
antirez
f8d8a629ab Quoted tuples. 2022-12-23 12:02:09 +01:00
antirez
430dee9961 uplevel + get@ for strings, tuples. 2022-12-22 18:30:57 +01:00
antirez
083858ae4c Parser fix and refactoring. Implemented map in Aocla. 2022-12-22 10:54:52 +01:00
antirez
b2dec63b4b Fix if/ifelse. Add showstack. Change @idx. 2022-12-22 10:40:31 +01:00
antirez
03e6c46d7c get@. 2022-12-22 10:19:28 +01:00
antirez
cc7fd74d87 Len. 2022-12-21 21:52:08 +01:00
antirez
16c99cf2a0 Added while, and other fixes. 2022-12-21 21:32:52 +01:00
antirez
d0025f9aed Line number context and call stack in errors.
This is really a minimal support to understand where the
error could be. This is the kind of thing that is full of
details and doesn't show much general ideas. Still something
should be provided, and can be interesting to see how very
basic propagation of source-level informations work in
practice.
2022-12-21 15:37:05 +01:00
antirez
84b9cb7e99 Comments, string object, output improvements. 2022-12-21 12:45:29 +01:00
antirez
58b779f2ef Run program from file. 2022-12-21 11:44:47 +01:00
antirez
54807bb9fc Fix a few memory leaks. 2022-12-21 09:05:52 +01:00
antirez
b0a58b4236 Bool type added. Fix stackPush() refcount handling. 2022-12-21 08:57:56 +01:00
antirez
9465e08d20 Simpler C procedure prototype. 2022-12-21 08:26:54 +01:00
antirez
dcf2fd3d9b def 2022-12-20 22:24:22 +01:00
antirez
6e4870766c Quoted symbols. 2022-12-20 22:12:45 +01:00
antirez
2ce51cf5a5 Locals can use any char + addProcString(). 2022-12-20 22:08:02 +01:00
antirez
c86faa26ac Variables pushing. Now the base language is complete. 2022-12-20 14:20:38 +01:00
antirez
fd274cad34 Variables capturing. 2022-12-20 14:10:45 +01:00
antirez
260d379cd5 sort and comparison procedures. 2022-12-20 12:52:41 +01:00
antirez
1e6e906074 Better stack visualization. 2022-12-19 22:06:02 +01:00
antirez
0dcacdcf06 Tuples are only made of lowercase single letters. 2022-12-19 17:18:18 +01:00
antirez
4a0f0bb206 Procedure call fixed. 2022-12-19 17:14:55 +01:00
antirez
1350a61d3c Some work toward a working eval(). 2022-12-19 15:53:50 +01:00
antirez
36a3976d53 Tuples parsing. C procedues in aproc structure. 2022-12-19 11:20:38 +01:00
antirez
15fa5fefd8 REPL loop and parsing changes. 2022-12-15 22:40:24 +01:00
antirez
58cc7dcc97 Initial changes to go from AoC puzzle to an interpreter. 2022-12-15 14:55:40 +01:00