Inger (programming language)

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Inger is an educational programming language developed by Alex van Oostenrijk, Frank Benders, Dennis Meffert, Jan-Willem Haaring and Thijs Janssen at the Hogeschool van Arnhem en Nijmegen in the Netherlands, released in 2003. It was created to accompany the book "Compiler Construction - A Practical Approach." which discusses the development of a compiler from the ground up.

Inger is a simple imperative, strongly typed language, much like C. It has C-interoperability (it can call C-functions, provided that one provides a header file that describes the C-function). Inger attempts to improve readability over the C language syntax by requiring braces for all block statements.

Sample code[edit]

This code outputs "Hello, world!":

module bottles;
 
#include "stdio.ih"
 
void sayhello: void -> void
{
  printf( "Hello, world!" );
}
 
start hello: void -> void
{
  sayhello( );
}

External links[edit]