[Toybox] [PATCH] awk -- more patches
Oliver Webb
aquahobbyist at proton.me
Thu Oct 31 22:29:54 PDT 2024
On Thursday, October 31st, 2024 at 18:35, Ray Gardner <raygard at 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 <aquahobbyist at proton.me>
More information about the Toybox
mailing list