Skip to content

plang is dead simple programming language for beginners written in rust

License

Notifications You must be signed in to change notification settings

c0d3-dump/plang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plang

plang is dead simple programming language for begineers.

i have created this language for learning rust, if anyone wish to continue improvement on this language then PRs are welcomed. Thanks in advance.

to run program

cargo run -- [file path with code]

functions:

let x = 0
let y = 1

fn sum(t1, t2) {
    return t1 + t2
}

let z = sum(x, y)

print(z)

loops

let x = 1

loop t : [1,2,3] {
    print(t)
}

loop {
    x = x + 1
    if x > 5 {
        break
    }
}

print("this is new x ", x)

conditions:

let x = 1

if x == 0 {
    print("No...")
} else {
    print("Hell yeah")
}

About

plang is dead simple programming language for beginners written in rust

Resources

License

Stars

Watchers

Forks

Languages