Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Earl Grey

< >

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

#647on PLDB 10Years Old
Download source code:
git clone https://github.com/breuleux/earl-grey
Homepage · Source Code

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 Example Token
Binary Literals
Integers
Floats
Hexadecimals
Octals

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

- Build the next great programming language · Add · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v164.7.0