Mirror
Mirror copied to clipboard
An LLM-powered programming-by-example programming language.
Using an `EBNF` understood by https://github.com/GuntherRademacher/rr we can generate a nice navigable railroad diagram to help document/develop/debug the grammar (see bellow with instructions at the top). ``` // // EBNF...
The last function call's value is supposed to be printed. This works fine for numbers, strings, and lists. However, it does not work for dictionaries. It prints `[Object object]` instead.
also the parser was including the surrounding " for strings... Those should (probably) be removed https://bsky.app/profile/anotherjesse.com/post/3lbwtom3wi22l
I think the real possible value here is taking someone who knows programming in general or even programming very well but only in a few languages, and making them someone...
The "compiler" should... 1. Emit the JS function signature statically. Currently, we are trusting the LLM despite the parser already having all the info. 2. Execute the inputs from the...
The playground, parser, and compiler are currently intertwined. Instead, there should be a single JS class that can be used by anyone with a simple compile function. Other data can...
The types from the function signature are helpful for the LLM to generate code, but we do not enforce them for the function expressions. This should be done after/during parsing...