Measures Concepts
GitHub icon

Earl Grey

Earl Grey - Programming language

< >

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

Source code:
git clone https://github.com/breuleux/earl-grey
#964on PLDB 10Years Old

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 ✓
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

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Queries · Stats · Sponsor · Day 605 · feedback@pldb.io · Logout