3 ms·
Like three or four. very simple language: main function whos value is the error code, functions of one argument returning one value, only ints, basic control fl
by steveklabnik 1y ago
Like three or four. very simple language: main function whos value is the error code, functions of one argument returning one value, only ints, basic control flow and math.
I just opened the repo, here's the commit that did what I'm talking about: https://github.com/steveklabnik/rue/commit/5742e7921f241368e1ab7027df8d4a14e5a9bb1f#diff-d7d183da3129291ef1210410b2898ac6a65a4e4de8ede9775601173545570f57 https://github.com/steveklabnik/rue/commit/5742e7921f241368e...
Well, the second part anyway, with the grammar. It writing the lexer starts as https://github.com/steveklabnik/rue/commit/a9bce389ea358365f05673576a0f6ffcf5c787da#diff-bc6661da34ecae62fbe724bb93fd69b91a7f81143f2683a81163231de7e3b545R21-R25 https://github.com/steveklabnik/rue/commit/a9bce389ea358365f..., it was basically this program.
If I wrote down the prompts, I'd share them, but I didn't.
Please ignore the large amount of llm bullshit in here, since it was private while I did this, I wasn't really worried about how annoying and slightly wrong the README etc was. HEAD is better in that regard.
- Verdex 1y agoThanks