Skip to content

A simple imperative programming language.

License

Notifications You must be signed in to change notification settings

thomasbrus/imperia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Imperia

A simple imperative programming language.


How to install

$ git clone https://github.com/thomasbrus/imperia.git
$ cd imperia
$ cabal install --prefix=$HOME --user

How to run

$ ~/bin/imperia examples/power.im 
16    

Examples

Calculates 2^4. Prints 16 since any program returns the expression that was last evaluated.

a = 2
n = 4
power = 1

while n > 0
    n = n - 1
    power = a * power

See src/examples for more.

About

A simple imperative programming language.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published