Skip to content

izagawd/gen_z_lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Summary

A simple interpreted programming language made with rust.

VARIABLE DECLARATION

bag foo = 4;

NOTE: Variables can only be declared once. future changes to a variable can be made if u ignore bag EG

bag foo = 4;
foo = 5;

variables can NOT be declared twice EG

bag foo = 4;
bag foo = 5;

is INVALID

PRINTING

bag foo = 4;
yap(foo + (5 * 5));

NOTE: a semicolon represents end of a line

IF/ELSE

bag a = -5;
a = a + 10;

if a == 5 {
  yap("YAY");
}

else {
  yap("aww");
}

expected output:

YAY

while loops are in this language as well. So as string concatenation In this language, true is fax, and false is cap. "!" (or not) is no.

So if you want to say !false, you say, no cap, which is the same as true, which is false EG:

yap(no cap);

Expected output:

fax.

There's also: while loops

OTHER EXAMPLES

bag a = 5;
yap(a == 5 and 5 != 4);
yap(a > 3 or a > 10);
yap(no no no cap);

OUTPUT:
fax
fax
fax

About

A very simple gen z programming language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages