3 ms·
Not terribly challenging, but harder than expected. The reason: parsing. The bc language is poorly designed for a REPL, which it needs to handle. I got sick
by gavinhoward 2y ago
Not terribly challenging, but harder than expected.
The reason: parsing.
The bc language is poorly designed for a REPL, which it needs to handle.
I got sick of fixing parse bugs, though, and my source code got a sarcastic comment: https://git.gavinhoward.com/gavin/bc/src/commit/4b83bf07b97f65b53ffa53f37737b1ddce42dcde/src/bc_parse.c#L49 https://git.gavinhoward.com/gavin/bc/src/commit/4b83bf07b97f...