[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: 4 function calculator in Lua
- From: Ziyao <ziyao@...>
- Date: Fri, 20 Jan 2023 16:16:52 +0800
On 2023-01-17 01:54, Foster Schucker wrote:
One of the things I try to do when learning a new language is how to
make a 4 function calculator.
Roberto has posted an intro to his Building a Programming Language
and uses LPEG to do pattern matching. I would not have thought of it
as a way to do a simple (or complex) calculator. A good example set if
you've never used LPEG (like me)
I have coded a simple calculator while learning compilation theory.
It has been pushed towards my GitHub repository. Hope that helps.