Commit graph

44 commits

Author SHA1 Message Date
antirez
788c6fd7b3 More markdown fights. 2023-02-01 12:12:30 +01:00
antirez
e69deac83e Markdown fixes. 2023-02-01 12:10:00 +01:00
antirez
6d34f5462b README: draft finished. 2023-02-01 12:03:03 +01:00
antirez
6bfda37ea1 README: Aocla objects and parser. 2023-01-31 22:36:20 +01:00
antirez
9be947510a README: some internals explanation. 2023-01-31 20:05:50 +01:00
antirez
60da2d1f77 README: more information about the language added. 2023-01-31 13:22:37 +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
0b21b1f5be README: initial part and sections. 2023-01-30 23:07:32 +01:00
antirez
33f28950a0 Fibonacci example. 2023-01-30 22:33:15 +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
c7f94dd886 Examples dir added. 2022-12-22 11:08:16 +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
68e6076719 BSD 2 clause license added. 2022-12-21 16:12:46 +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