Skip to content

Getting into the coding

S Pradosh edited this page Feb 23, 2022 · 8 revisions

Before Getting into this

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

Getting into Hello World!

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!

πŸ‰ Melon Language Wiki

πŸ˜‰ Simple, πŸ’Ύ Low Level, πŸ‘¨β€πŸ’» PPL


Requirements

[External] Git

[External] C# Runtime

Architecture and OS that Melon Supports

Coding & Learning

Getting Into the coding

Variables

Advanced Calculations

Casting and Incrementing

Timers

Compilation

Loops and Goto

Functions

Conditions

File System

User Input

Importing Files and Library

Graphics

Package System

Configuration

Setup OS X for Melon Language

Setup Melon Language for Windows Terminal

Setup Melon Language for VSCode Terminal

Setup Environment CLI for Melon Language on Windows

Other

Downloads History

✨ WOW! You are at the end! now you are a Melon πŸ‰ programmer! Claim your badge!

Melon

Copy Paste: [![Melon](https://nuag9x4nt640.runkit.sh)](https://github.com/pradosh-arduino/Melon-Language/)

Clone this wiki locally