Commit graph

19 commits

Author SHA1 Message Date
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