I Created a JavaScript Simulator in Python SLY!

After finding someone’s project that used SLY (Sly Lex Yacc), I decided this would help me be able to create a programming language. So I picked my strongest language: JavaScript, and tried to recreate it in Python.

Link to SLY project I saw is https://repl.it/@sugarfi/Parser-Template

You can create integer or string variables, use comments, and print things so far in my JavaScript.
WARNING: this JS simulator requires you to put a semicolon (;) at the end of statements
You can easily extend and replace these syntax rules to create your own language! I will also try to use this as a reference for a future programming language I’m trying to create!

You are viewing a single comment. View All

@BrutalBucket Yes you do need ; at the end of the line, if you don't it will generate an error, that won't be shown, then it will kinda auto-correct your own line. So take this for example:

After running it it would turn into:

But your code would stay the same