I am starting a new series about compilers called Compilers Challenge and this is episode 1. For each "compilers challenge", first I will present a video with a problem for you to solve. You are to solve this code challenge at home. Then, in a separate video coming out about a week later, I will present my solution to the challenge. To get the most of this experience, I recommend that you give the challenge a faithful attempt before view my solution. The first episode is on Reverse Polish Notation: https://en.wikipedia.org/wiki/Reverse_Polish_notation. Here is the text of the challenge as it is written on leetcode.com: https://leetcode.com/problems/evaluate-reverse-polish-notation/. Good luck!
This is the solution to the first compilers challenge: Reverse Polish, which can be found here: https://tobyho.com/video/Compilers-Challenge-1-Reverse-Polish-Notation.html You can find all compilers challenges here: https://github.com/airportyh/compilers_challenge
Welcome to the second compilers challenge, a series of compilers related code challenges. This episode is about the Forth programming language, which is interesting in the way that it is simple. In future challenges, we plan to build a simple Forth interpreter, but in this episode, I challenge you to write programs in Forth. I walk you through the basic concepts in Forth and then set you off on your adventure. Enjoy. You can find all compilers challenges here: https://github.com/airportyh/compilers_challenge.