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.

Dule

From Esolang
Jump to navigation Jump to search

Dule is a meta-language or a family of languages invented by User:None1. It is an attempt to unify the four esolangs Dotfuck, Unary, Lenguage and Ellipsis, so its name is made up of the first letter of each esolang.

Member definition

A member of dule is like this:

Dule(r,f,m)

r is a regular expression. m is a permutation of the 8 brainfuck commands.

The behavior of Dule(r,f,m) is:

  1. If r is empty, programs consist of a number. Otherwise, programs consist of a number of strings that match r (In Dule, the regex . matches any character including the newline character).
  2. If r is empty, let N be the number itself. Otherwise let N be the number of such strings.
  3. Write N in binary. Remove the first f bits and pad the rest with zeros at the front until the length of the binary string becomes a multiple of 3.
  4. For every 3 consecutive bits, let i be the number they represent, and they will be translated to the brainfuck command mi.
  5. Execute the brainfuck program translated.

Examples of Dule members