Hey all,
I have recently been working on a project for the calculator that would ideally involve running a few scripts from AppVars that call C functions within the main program; this would allow the project to be easily extendable in a way that I think would be quite cool. In the past couple days, I have thrown together two partial LISPs, but keep struggling to get an interpreter to a workable state. I have never made one before...
Does anybody know of a previous project I could draw on that is capable of:
Alternatively, could anybody give me some advice for a good, basic memory structure to go for in my own interpreter, or a way to identify an existing interpreter that might be easy to port instead? (Or a quick and dirty way to emulate FILE*s, which seems to be a big holdup)
For anybody who wants to see my floundering: https://tangled.org/@euphory.gay/hg
I have recently been working on a project for the calculator that would ideally involve running a few scripts from AppVars that call C functions within the main program; this would allow the project to be easily extendable in a way that I think would be quite cool. In the past couple days, I have thrown together two partial LISPs, but keep struggling to get an interpreter to a workable state. I have never made one before...
Does anybody know of a previous project I could draw on that is capable of:
Performing mathematics with unsigned integers
Reading/writing without assumption of FILE layer
Calling C functions provided as primitives
Recursion
Alternatively, could anybody give me some advice for a good, basic memory structure to go for in my own interpreter, or a way to identify an existing interpreter that might be easy to port instead? (Or a quick and dirty way to emulate FILE*s, which seems to be a big holdup)
For anybody who wants to see my floundering: https://tangled.org/@euphory.gay/hg


