Pretty basic interpreter,
but I assure you’ll have indentation errors for days! I decided to implement basic Python features such as:
- logic (if/else)
- “good readability (aka whitespace for daysss)”
So try it by messing around in the
.pyjs file! Also if you want to see the tree breaking down your file switch the
_debug variable to true! Happy coding!
Idea: rather than being run in JS, transpile (translate) the Python code into JS code. That way Python could run "natively" on the web!
@jort57 That tutorial is my tutorial. The reason it doesn't execute anything yet is because that's part 1 of 2, if you read the title or the ending (where it clearly says "next time, we'll implement execution"). The second part isn't out yet, this stuff takes time which I often don't have.