Skip to content

Variables

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

What are variables?

variable is a named memory location which stores data. Melon has 3 data types they are string, hex, bool

sep

How to use it?

Step: 1: Open Melon Language CLI and create a new project

Step: 2 let's say we want to create a hexadecimal variable, we should do:

hex Test = 3E ? Locked = false

we can use the same for string and bool. the hex stands for hexadecimal and then the name of your variable then we type = to assign a value to the variable. declaration is not possible in melon. then we have Locked which makes the variable editable or not if it was Locked = true the variable is a constant if not it's dynamic

sep Good Practice : Always delete the variable at the end of the code

delete <varName>

or

delete <var1>, <var1>

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