-
Notifications
You must be signed in to change notification settings - Fork 2
How to use meow‐lang
Now that your have installed meow-lang let's use it.
This video will show you how to use meowlang
How to use meowlang
Let's start by writing a basic hello world program. Open the .meow file and write this in it.
show "hello world";
Save the file and use meowlang <your file name>.meow
to run it and see the output.
Now on to the next
meow-lang is dynamic typed language meaning the data type of a variable can be changed over its runtime.
Since meow-lang is very new it can only support 2 data types
1 - string examples - "this is a string with double quotes" in meow-lang from string to char they have to be inside "double quotes"
2 - int examples 1,2,3,028304802380482034 -3 +2 and so on
x = "hello";
y = "world";
show x y;
Run the program it should give us helloworld
.
y = 1 * 2 + 3 / 8;
x = y + 1;
You can see that after performing the above steps the contents of x and y
was change they are int now not string
if x == 5:
show "x is 5";
fi;
else:
show "x is not 5";
el;
every if has be ended with fi;
and every else has to be ended with el;