Gazprea Programming Language
Open the Gazprea compiler explorerGazprea is derived from a language originally designed at the IBM Hardware Acceleration Laboratory in Markham, ON. It was adapted for compiler design education, including CMPUT 415 at the University of Alberta (UAlberta).
Gazprea is built to be a quick, easy-to-write scripting language, but it is
compiled for speed. It supports integers, reals, characters, and booleans as
scalars, vectors, or matrices, with const (default) and
var qualifiers plus type inference.
var i = 42;
const r = 3.14;
integer[10] squares = [i in 1..10 | i * i];
Language highlights
- Tuples, structs, arrays, vectors, and strings
- Generator expressions and domain expressions for optimized array code
- Pure functions vs side-effecting procedures
- Streams (
std_input/std_output) and built-ins likelength,shape,reverse, andformat
Try Gazprea in the browser
Gazlab is a free compiler explorer where you can write and run Gazprea online - useful for CMPUT 415 students and anyone learning the language.
Related reading: CMPUT 415, About Gazlab, UAlberta Computing Science.