Example program written in Huginn language:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

#! /bin/sh exec huginn -E "${0}" "${@}" #! huginn /* First Huginn program. */ import Algorithms as algo; main( argv_ ) { print( "Hello World!

" ); argc = size( argv_ ); print( "number of arguments: {}

".format( argc ) ); for ( i, arg : algo.enumerate( argv_ ) ) { print( "argv_[{}]: {}

".format( i, arg ) ); } if ( argc >= 3 ) { base = number( argv_[1] ); exp = number( argv_[2] ); print( "{} ^ {} = {}

".format( argv_[1], argv_[2], base ^ exp ) ); } else { print( "Not enough arguments to calculate power.

" ); } return ( 0 ); }