Tweet

From Esolang
Jump to navigation Jump to search

Tweet is an output-only, interpreted programming language. It was coauthored by Nick Trebes and Brendan Gould. The language is designed to improve the social connectivity of the programmer.

Source Code

Every file is a valid Tweet script. Only the first 280 bytes will be used. The rest is treated as comments. Less than 280 bytes is sufficient, so long as there are an even, nonzero number of bytes in the program.

Tokens

There are three types of tokens in Tweet, literal strings, hash strings, and user strings. Hash strings are delineated by a '#' and are composed of [a-zA-Z0-9] characters, unbroken by whitespace or punctuation. User strings are exactly like hash strings, but are delineated by a '@'.

Interpretation

The first 280 bytes are interpreted into literal, hash, and user strings using the Unicode character encoding. These literal, hash, and user strings are then concatenated, outputting the result to the Twitter account of the user.

Requirements

Tweet requires a Twitter account.

Example Program

The following program outputs 'Hello, World! #MyFirstTweetProgram'.

Hello, World! #MyFirstTweetProgram

Important note

This language is a joke language.