-login:
user: password:
Polski
huginn - programming language with no quirks, so simple every child can master it.
Fork me on GitHub
git clone https://codestation.org/repo/huginn.git
git clone https://github.com/AmokHuginnsson/huginn.git
git clone https://bitbucket.org/huginn/huginn.git
  1. Syntax
  2. Keywords
  3. Types

    Huginn provides several built-in scalar and collection types, as well as user defined compound types.

    integer real string number character boolean list deque dict order lookup set
  4. Built-ins
  5. Core library classes
  6. Packages

constructor keyword:

Editor (vim) - constructor.hgn (Try it online!) [+line no]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#! /bin/sh
exec huginn --no-argv -E "${0}" "${@}"
#! huginn

class Point {
	_x = 0;
	_y = 0;
	constructor( x_, y_ ) {
		_x = x_;
		_y = y_;
	}
}

main() {
	p = Point( 1, 2 );
	print( "p = ({},{})\n".format( p._x, p._y ) );
	return ( 0 );
}

Program output:

Terminal - shell session [–line no]
[amok@vegeta](2/1)~/$ ./constructor.hgn
p = (1,2)
[amok@vegeta](2/1)~/$