Programming language where you can code using emojis π
First make sure you have python(version 3.x) and pip installed
#First Clone It
git clone https://github.com/grininja/emojilang.git emojilang
#Navigate into the directory
cd emojilang
#Install the requirements
pip install -r requirements.txt python main.py <Your File Path>
# for example
python main.py /tests/firstPrimes.emoOr
python3 main.py /tests/firstPrimes.emo| emoji | Semantic |
|---|---|
β, β, β, β, π |
*, +, -, / ,% |
πΏ, π |
while, for |
π©, π, π³ |
if, else, elif |
βΈ, β© |
break, continue |
π, ππ, π, π, ππ, ππ, βπ |
=, ==, >, <, >=, <=, != |
β, β―, β, γ° |
(bitwise) &, |, ^, ~ |
π , π, β |
(logical) and, or, not |
π© (comments starts with 'π©') |
//, # (comments) |
π’ |
declare variable |
π¨ |
print() (print to console) |
π, π |
(, ) |
π½, π₯ |
{, } |
πΏ |
, |
π |
; |
β, β |
true, false |
π’ a π© declares the valriable a
π’ b π 5πΏ cπΏ d π 6 π© declares a, c, d and assigns them 5, None, 6 respectively
π’ e π 5βcβ4 π© equivalent to decl e = 5+c*4
π’ t π βπΏ f π© decl t = true, f
π, π
a π 3
b π πcβ4πβ5 β d
f π β
π© Equivalent to
π© a = 3
π© b = (c*4) + 5 / d
π© f = false
π’ f0 π 0 πΏ f1 π 1
π’ i π 0
πΏπi π 10ππ½
π¨πf0π
π’ tmp π f0
f0 π f1
f1 π f1 β tmp
i π i β 1
π₯
π© Equivalent to
π© decl f0 = 0, f1 = 1
π© i = 0
π© while(i < 10){
π© print(f0)
π© decl tmp = f0
π© f0 = f1
π© f1 = f1 + tmp
π© i = i + 1
π© }
π’ start π 2 πΏ end π 100
πππ’ nπstartπnππendπ n π nβ1ππ½
π’ flag π β
πππ’ iπnβ1π i π 1π i π i β 1ππ½
π©πn π i ππ 0ππ½
flag π β
βΈ
π₯
π₯
π©πflagππ½
π¨πnπ
π₯
π₯
π©Equivalent to
π©decl start = 2, end = 100
π©for(decl n = start; n <= end; n = n+1){
π© flag = true
π© for(decl i = n-1; i > 1; i = i - 1){
π© if(n%i == 0){
π© flag = false
π© }
π© }
π© if(flag){
π© print(n)
π© }
π©}
NOTE: The original repository is where we will add new features to the base language(YAIL) this repo is for emoji extension(EMOJILANG).