Skip to content

erikroyall/iris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An interpreter I wrote in an evening

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published