Skip to content

Added functions without arguments

Michael Aaron Murphy requested to merge nounoursheureux:functions into master

Created by: nounoursheureux

Current syntax:

fn function_name
   echo "Hello, World"
end

function_name
> Hello, World

It works, but I feel that my code is quite bad (lots of clone() for example) so if you have any comments don't hesitate to tell me.
Also, the if...end and for...end blocks don't work inside a function, so for now they are just aliases (but I'm going to try to fix this)

Merge request reports