Skip to content

Latest commit

 

History

History
76 lines (53 loc) · 639 Bytes

README.md

File metadata and controls

76 lines (53 loc) · 639 Bytes

Iris

A programming language

Introduction

Variables

let varname value
let varname :anothervarname

Printing

print hello world
print :varname
print %ln
print %retval

Arithmetic

add 1 2
print 1 + 1 = %retval

More Arithmetic

div 5 2 2
print %retval

Labels

goto main

code ignored
this too

main:
  print reached main

if statement

if 2 < 3 print hello

@include

@include /path/to/script.iris

More examples

let me pootis
let name :pootis
print hello :name
print %ln
add 1 2 3 4
print 1 + 2 + 4 + 5 = %retval

License

CC0