changed "var type = value" syntax to "var::type = value" and added the tutor (mers -t)

This commit is contained in:
Dummi26
2023-04-25 02:55:16 +02:00
parent 7baa1c2aba
commit ca1dbf2722
16 changed files with 561 additions and 216 deletions

View File

@@ -44,6 +44,10 @@ To run a program, just run `mers your_file.txt`. The file needs to be valid utf8
Alternatively, run `mers -e println("Hello, file-less world")`.
If you compiled mers in debug mode, it will print a lot of debugging information.
### tutor
Use `mers -t` to start the tutor, which will give you an interactive tour of the language.
### interactive mode
Use `mers -i` to start interactive mode. mers will create a temporary file and open it in your default editor. Every time the file is saved, mers reloads and runs it, showing errors or the output.