Tabloid is a minimal but Turing complete programming language inspired, nay, supercharged by clickbait headlines that rule the Internet today. You can

thesephist / tabloid

submited by
Style Pass
2021-06-24 17:30:06

Tabloid is a minimal but Turing complete programming language inspired, nay, supercharged by clickbait headlines that rule the Internet today. You can try Tabloid on the Tabloid website. Thanks to @otherjoel, there's also a Racket implementation of Tabloid that's very nearly compatible. A small library of math and other helper functions is also available from @MarcelloTheArcane's tabloid-samples project.

Tabloid is quite small -- it only supports number, string, and boolean values at the moment, and have semantics that match JavaScript since JavaScript is used to implement the language backend. But it's good enough for a joke language made in six hours, so I'm rollin' with it.

Tabloid has an expression-based grammar, and lacks any distinction between expressions and statements. If there isn't an explicit return from a function, the last expression's value will be returned.

IS ACTUALLY is a way to test equality, like == in most other languages. We can also make comparisons with X BEATS Y (x > y) and X SMALLER THAN Y (x < y).

Leave a Comment
Related Posts