Skip to content

Latest commit

 

History

History
68 lines (52 loc) · 812 Bytes

File metadata and controls

68 lines (52 loc) · 812 Bytes

Variables:

let x of type integer be 5 stop let y of type integer be pointer to x stop let a of type integer be 5 plus 5 stop let b of type integer be 1 minus 1 stop let c of type string be quote hello quote stop

Functions:

define doSomething gives back integer as give 5 back end

define doSomething with x of type integer y of type string gives back integer as end

call doSomething stop call doSomething with 10 comma 20 comma 30 stop

Conditionals:

if x greater than y then end

if x less than or equals to y then otherwise just end

if x equals y then otherwise if x less than y then end

Loops:

for i less than 10 repeat end

Print:

say quote hello world quote stop

Keywords:

let be pointer to stop define as end with if greater than then less or equal otherwise for repeat

plus minus times divide