Skip to content

How to use meow‐lang

dannfr edited this page Nov 5, 2023 · 4 revisions

Now that your have installed meow-lang let's use it.

video tutorial (They are cringe)

This video will show you how to use meowlang
How to use meowlang

Hello World

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

variables

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

cool now let's use them

x = "hello";
y = "world";
show x y;
Run the program it should give us helloworld.

you can also perform maths

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 n else

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;