Top 1,000 Features Creators Events Podcasts Extensions Blog Explorer CSV Download

Earl Grey

< >

Earl Grey is a programming language created in 2014 by Olivier Breuleux.

#630on PLDB 10Years Old
Download source code:
git clone

Programming language compiling to JavaScript

Example from the web:
count-words(text) = counts = new Map() words = text.split(R"\W+") words each word -> current-count = counts.get(word) or 0 counts.set(word, current-count + 1) consume(counts.entries()).sort(compare) where compare({w1, c1}, {w2, c2}) = c2 - c1

Language features

Feature Supported Token Example
Binary Literals

HackerNews discussions of Earl Grey

title date score comments
Show HN: The Earl Grey language – pattern matching, macros, compiles to JS 08/07/2014 5 1

View source

- Build the next great programming language · About · Resources · Acknowledgements · Part of the World Wide Scroll