haumea-lang / haumea-rs

Haumea is an experimental language designed to be simple and easy to learn and program in.
MIT License
7 stars 2 forks source link

Add loops #7

Closed BookOwl closed 7 years ago

BookOwl commented 7 years ago

This PR adds

  1. Forever loops:

    forever do
    change x by 1
    display(x)
    end
  2. While loops:

    while x < 5 do
    change x by 1
    display(x)
    end
  3. And for loops:

    for x in 0 to 10 by 2 do
    display(x)
    end
    
    for x in 1 to 5 
    change y by x
BookOwl commented 7 years ago

Add loops