Comment by JonChesterfield
1 day ago
Passing the lexical information in and requiring s-expressions be returned is a good idea. Put a cache on it to remember what the llm came up with last time and you have a legitimate, if somewhat weird, language implementation.
Cache it and give the user a tool to see the code and regenerate it when not happy and this is really quite a bit of fun.