Skip to content

Commit 8f263c3

Browse files
committed
Added gen alpha keywords and example programs to gen_alpha folder in examples/
1 parent 6ae0508 commit 8f263c3

4 files changed

Lines changed: 51 additions & 0 deletions

File tree

examples/gen_alpha/alpha.csv

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
None,skibidi
2+
int,rizz
3+
float,chad
4+
str,yap
5+
bool,cap
6+
True,W
7+
False,L
8+
if,edgy
9+
else,amogus
10+
while,goon
11+
break,bruh
12+
continue,grind
13+
for,flex
14+
return,bussin
15+
match,ohio
16+
case,sigma
17+
case _,based
18+
raise,cringe
19+
print,gyatt
20+
def,funk

examples/gen_alpha/color.tpy

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
color = input('Enter Color: ')
2+
3+
ohio color:
4+
sigma 'Red':
5+
gyatt('Stop!')
6+
sigma 'Yellow':
7+
gyatt('Slow Down!')
8+
sigma 'Green':
9+
gyatt('Go!')
10+
based:
11+
gyatt('Unknown Color!')

examples/gen_alpha/fibonacci.tpy

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
def fibonacci(n: rizz):
2+
edgy n <= 1:
3+
bussin n
4+
amogus:
5+
bussin fibonacci(n - 1) + fibonacci(n - 2)
6+
7+
num: rizz = rizz(input('Enter Number: '))
8+
num = fibonacci(num)
9+
gyatt(num)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
funk is_prime(n: rizz):
2+
edgy n <= 1:
3+
bussin L
4+
5+
flex i in range(2, n):
6+
edgy n % i == 0:
7+
bussin L
8+
bussin W
9+
10+
num: rizz = rizz(input('Enter Number: '))
11+
gyatt(is_prime(num))

0 commit comments

Comments
 (0)