-
-
Notifications
You must be signed in to change notification settings - Fork 1
Getting into the coding
First we need to learn about all commands/instruction that melon can do, but right now let's try to print Hello World!
and explain the code on the way
Step 1: Start the Melon Language CLI
if you have trouble starting it run this in cmd.exe "Melon Language" --output-path #this# --output-format bin --output-name output --program-path #this# --logging true --splash-text true --updates true
Step 2: Create a new file called as main.mlf
Note: the name should be exactly "main.mlf"
Step 3: Open the file with your favorite IDE/Code Editor
Step 4: Now here comes the fun part!
now your file should be empty add {
at line 1 and }
end of the file these to brackets define the start and the end of a file outside of that will not get run or compiled
Step 5: now your gonna type convert
like this
convert
}```
**Step 6:** now we need to tell what we need to convert so goto the next line and type the word you need to print like this
```{
convert
Hello World!
}```
basically we are converting the ASCII letters `Hello World!` to byte code and pushing it to the "Addresses"
**Step 7:** Goto your Melon CLI and type `run` to execute the script but it will not work yet. next type `;` with that command you can see the Addresses that are will be in compiled output
**LAST - Step 8:** type `run-text` and you have your `Hello World!` printed yay!
Copyright (C) S Pradosh 2023 - Closed Source Project
Architecture and OS that Melon Supports
Setup Melon Language for Windows Terminal
Setup Melon Language for VSCode Terminal
Setup Environment CLI for Melon Language on Windows
Copy Paste: [](https://github.com/pradosh-arduino/Melon-Language/)