added high-level imperative looping constructs

Signed-off-by: Jan Dvořák <mordae@anilinux.org>
added the throw form

Signed-off-by: Jan Dvořák <mordae@anilinux.org>