Top 1,000 Features Creators Resources Blog Explore Download
GitHub icon

Z-flat

< >

Z-flat is a programming language created in 2021 by Adam Hutchings.

Source code:
git clone https://github.com/adamhutchings/zflat
#2512on PLDB 3Years Old

The home of the Zâ™­ programming language, including the compiler and docs (in progress) and the standard library (not yet started)


Example from the web:
~/ factorial /~ ~ recursive implementation ~ factorial_r(x: int): int { if (x < 2) { return 1; } else { return x * factorial_r(x - 1); } } ~ iterative implementation ~ factorial_i(x: int): int { ret: int = 1; loop(x): i: int { ret *= (i + 1); } return ret; }

View source

- Build the next great programming language · About · Acknowledgements · Extensions · Day 624 · feedback@pldb.io