Skip to content

Getting into the coding

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

Before Getting into this

you must know the basics of a programming language

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

Printing Hello World!

Step 1: Create a new project with Melon_Language --new-project <path/to/your/project>

Step 2: Open main.mlf

Step 4: Type the following code:

{
    importl
    graphics

    println
    "Hello%0aWorld!"
}

Step 5: Goto Melon Language CLI and type run

At first we type { because that defines the start of the file, without it the interpreter will show you an error. then we type importl which stands for "import library" which imports a specific library, for Hello World! we need graphics library so we import it. then we type println which stands for "print line" which prints a text with new line, then we specify the text to print in our case it's Hello World! but interpreter doesn't handle spaces inside strings so we use %0a for space.

Char Set

String Name
%0a Space
%0b New line (\n)
%0c Carriage return (\r)
%0d Tab (\t)
%0e Vertical tab (\v)
%0f Backspace (\b)
%1a Double Quotes (")
%1b Single Quote (')
%1c Backslash (\)
%% Percentage (%)

πŸ‰ 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