We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Itera

From Esolang
Jump to navigation Jump to search

Itera is a Markov algorithm based Esoteric programming language. It uses a similar grammar to Thue. Unlike Thue, it is deterministic. The substitution rules are represented as

   substring::=substitution

input is defined as:

   substring::=?

when executed, the substring is substituted with the input string.

output is defined as:

   substring::=!

when executed, the substring is printed onto the screen.

when an Itera program is started, it asks the user for input. The user input becomes the string that Itera uses.

Here is an example program that converts unary into Roman numerals

   1::=I
   IIIII::=V
   IIII::=IV
   VV::=X
   VIV::=IX
   XXXXX::=L
   XXXX::=XL
   LL::=C
   LXL::=XC
   CCCCC::=D
   CCCC::=CD
   DD::=M
   DCD::=CM