
Lazy is a personal programming language that started working on a few days ago. I am following a simple approach here, to use if-else statements to parse the program. It’ll be an interpreted language then. A stack will be needed to handle loops, etc. I continued on the code today, I used an online compiler since I am on a ChromeBook. I wrote a program to contain a multiline program string and then to split it into lines and then into tokens. I also wrote basic logic to try to match a variable using a regex. I am stopping now, owing to a couple of factors. One, I have used some new C++ library includes, functions, etc. I need to let it settle. And two, the compiler/interpreter parsing logic has run into a problem. I need to detect statement types well, using stack, backtracking, etc., this will take some effort.
Commit: https://github.com/amol9/lazy/commit/f8e219e7525af0efd317daa44844c83a0a7d5d8c
0 Comments.