Skip to content
/ YAIL Public

Programming language where you can code using emojis ๐Ÿ˜Œ

Notifications You must be signed in to change notification settings

ayushk7/YAIL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

emojilang

Programming language where you can code using emojis ๐Ÿ˜Œ

See fork https://github.com/grininja/emojilang for complete project

To install dependencies

pip install -r requirements.txt

Current Syntax

Operators

Operation Symbol
unary not not
!
unary complement ~
bitwise and &
bitwise or |
bitwise xor ^
xor
bitwise complement ~
logical and and
&&
logical or or
||
logical not not
!
logical xor xor
^

Operators Precedence

Operators With Highest Priority On Top

Description Operators
unary oprators not, !, ~
arithmatic *, /, %
arithmatic +, -
comparison ==, !=, <=, <, >, =>
*Python's Precedence
bitwise and &
bitwise xor ^, xor
bitwise or |
logical and and, &&
logical or or, ||

Variable Declaration

    decl a
    decl b=5, c, d=6
    decl e=5+c*4
    decl t = true, f

Assignments

    a = 3
    b = (c*4)+5 / d
    f = false

Flow Control

    while(a <= 5*b){
        #this is how you use comments
        #statements
    }
    while(){
        #infinite looop
    }
    for(decl i=0, j=7, k; i < a*5; i = i+1, b=b*(28 +)){
        #declared i, j, k and assigned values to i and j
        #statements
    }
    for( ; ; ){
        #all three statements can be skipped
    }

Branching

    if(a == 5){
        #statements
    }
    elif(a<5){
        #statements
    }
    elif(a>5 || a&b|c){
        #statements
    }
    else{
        #statements
    }

Invalid Syntaxes

    #INVALID
    if(a==5)
        print(a)
    
    #VALID
    if(a==5){
        print(a)
    }
    

    #similarly for other blocks like for and while

About

Programming language where you can code using emojis ๐Ÿ˜Œ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages