Hlang--Write a programming language in Python-the realization of variables

Preface

As mentioned before, we finally set up our entire framework. Let’s repeat our process here. That is, first, we parse the text, then traverse the legal keywords we defined in the text, and then encapsulate them. It is a Token, and then we start to build our syntax tree, and then hand it over to the interpreter to complete the operation. It's just that what we did at the time was for this mathematical operation. So now, what we are going to implement is our variable, and the effect is as follows:
Insert image description here

Grammar rules

So, now, we have to talk about our grammar rules. Grammar rules are very important,

Guess you like

Origin blog.csdn.net/FUTEROX/article/details/132377336