petyadev1 / FrlScript

The fastest & easy learnable programming language made by the Followrel team. I'll share the example files here.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FrlScript

The fastest & easy learnable programming language made by the Followrel team. I'll share the example files here.

Getting started

First, download the FrlScript shell here.
You can save & import your .frl script with

RUN("yourcode.frl")

Please note that the script and the app should be at the same directory to make it work. You can also define the path inside the brackets.

When FrlScript finishes executing your code, it will drop you a 0.

Variables

So like every language, there are variables in FrlScript. To create one use

VAR lol = "Hello World" #For strings

VAR lol = 1 #For integers

VAR lol = true/false #For booleans

You can replace lol with your variable name. It can be anything!

Logic operations

What if I want a code that prints "eat" when the apple variable is "red"? You can use IF/ELSE/ELIF statements

VAR apple = "red"

IF apple == "red" THEN

SAY("eat")

END

For loops

Alright, but how to count to 10 from 0? I will show you!

FOR i = 0 TO 11 THEN

SAY(i)

i + 1

END

As you can see, it will count for us.

Functions

You can make functions in FrlScript. You can create a function with these lines:

FUN lol()

SAY("lol")

END

lol()

It will say "lol" when the function is called.

About

The fastest & easy learnable programming language made by the Followrel team. I'll share the example files here.