Skip to content

Overview

Alexander (Arkasha) edited this page Nov 2, 2019 · 5 revisions

Hello World

For work this code who need download framework wolSystem from https://github.com/world-of-legends/frameworks-wolvm-dotnet/releases

_loads {
    wolSystem
}
main {
    print : <Hello World:string>;
}
end

Hello World with variables:

_loads {
    wolSystem
}
stack {
    var {
        a = string PUBLIC set (_a: string) [
			set : &@a , @_a ;
		]
		PUBLIC get [
			return @a ;
		],
        b = string PUBLIC set (_b: string) [
			set : &@b , @_b ;
		]
		PUBLIC get [
			return @b ;
		] 
    };
}
main {
    @a.#set : <Hello :string>;
    @b.#set : <World:string>;
    print : @a, @b;
}
end

Hello, name

For work this code who need download framework wolSystem from https://github.com/world-of-legends/frameworks-wolvm-dotnet/releases

_loads {
    wolSystem
}
stack {
    var {
        name = string PUBLIC set (_name: string) [
			set : &@name , @_name ;
		]
		PUBLIC get [
			return @name ;
		]
    };
}
main {
    @name.#set : (input) ;
    print : <Hello :string>, @a, <\n:string> ;
}
end