-
-
Notifications
You must be signed in to change notification settings - Fork 1
Getting into the coding
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
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.
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 | (%) |
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/)