3 ms·
Yes, this is a simple expression parser, I transpiled this tutorial to C earlier this year [0]. If by some chance you would like to build my C version, you woul
by ryanmccullagh 10y ago
Yes, this is a simple expression parser, I transpiled this tutorial to C earlier this year [0]. If by some chance you would like to build my C version, you would need two other libraries that I built too. Compilers is the most interesting CS topic for me. That and language runtimes. If I could go to grad school, that's what I would want to research.
I also emulated Python's `raw_input` function to my own C version :)
It was also a chance for me to use `setjmp` to implement exception handling in C. Take a look at this commit: https://github.com/rmccullagh/calculator/commit/6afac5e5924b769e7a9f7a402d4dd86c1baead34#diff-2045016cb90d1e65d71c2407a2570927R43 https://github.com/rmccullagh/calculator/commit/6afac5e5924b...
[0] https://github.com/rmccullagh/calculator https://github.com/rmccullagh/calculator