On Thursday, October 31st, 2024 at 18:35, Ray Gardner <rayg...@gmail.com> wrote:
> I know you want little perfect bonsai; not always possible. awk will be > big, > bc will be big, Note: If you only care about the linux kernel, whatever primitives the arbitrary precision library uses could theoretically be replaced with 64-bit math while still building the kernel. That'd easily take off a few thousand LOC. But it'd also remove all special functionality from bc. > yacc will be big I have actually stumbled upon a small POSIX yacc (It's unfortunately 2-Clause BSD) that seems to do its job in 1200 LOC: https://c9x.me/yacc/ I don't know if the linux-kernel specifically requires GNU Bison or if it will build under any random yacc. And from my understanding bison does things a lot different under the hood (I'm not sure how?). - Oliver Webb <aquahobby...@proton.me> _______________________________________________ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net