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.

ACHOO

From Esolang
Jump to navigation Jump to search
ACHOO
Paradigm(s) imperative
Designed by User:Toastyboi11
Appeared in 2026
Computational class Turing complete
Reference implementation achoo.py
Influenced by Brainfuck, Ook!, INTERCAL, Chef, LOLCODE, ArnoldC
File extension(s) .ach

ACHOO is an esoteric programming language by User:Toastyboi11 in which every program is written as sneezes, the things people say back to someone who sneezes, and a few manners. A program is translated into Python before it runs, so ACHOO can do anything Python can, as long as you are willing to sneeze it.

ACHOO started out as Brainfuck written in sneezes and grew from there. The current version is ACHOO 5.

Overview

A program is a list of words separated by whitespace. Each line of an ACHOO program becomes exactly one line of Python. Every word decodes to a small piece of Python source code, and the pieces on a line are joined with nothing in between. The spaces between ACHOO words are only separators; a space in the Python code is itself a sneeze.

There are three kinds of words, plus manners and comments.

Reply words

The fourteen most used pieces of Python get a word you might say to a sneezer:

Word Means
hanky self
cough def
tissue return
salud if
sante else
salute elif
zdrowie for
prosit while
sniffle import
fever class
gesundheit print
snot None
healthy True
sick False

Reply words must be written in lowercase.

World sneezes

Everything else that is common in code is a world sneeze. There are eight spellings, each forming a group: the letters before the o's pick the group and the number of o's (1 to 9) picks the piece inside it. A world sneeze never has more than 9 o's.

Group o's: meaning
achoo 1: space, 2: 4 spaces, 3: (, 4: ), 5: ., 6: ,, 7: :, 8: =, 9: "
atchoo 1: ', 2: in, 3: from, 4: __init__, 5: and, 6: or, 7: not, 8: is, 9: try
ahchoo 1: except, 2: finally, 3: with, 4: as, 5: lambda, 6: yield, 7: pass, 8: break, 9: continue
hachoo 1: raise, 2: global, 3: nonlocal, 4: del, 5: assert, 6: async, 7: await, 8: [, 9: ]
hatchoo 1: {, 2: }, 3: +, 4: -, 5: *, 6: /, 7: %, 8: ==, 9: !=
aitchoo 1: <, 2: >, 3: <=, 4: >=, 5: +=, 6: -=, 7: ->, 8: **, 9: //
atishoo 1: #, 2: @, 3: _, 4: __name__, 5: __main__, 6: range, 7: len, 8: input, 9: str
kerchoo 1: int, 2: \, 3: match, 4: case, 5: f

Spelled letters

Anything that is not covered by a reply word or a world sneeze, such as variable names, digits and the contents of strings, is spelled one character at a time. A spelled letter is ach followed by the character's code in binary, with o for 0 and O for 1. For example achOooOooo is 1001000 in binary, which is 72, the letter H. Spelled letters always start with a capital O.

Manners

  • After every 7 statements the interpreter needs a line that says only bless you. A statement is a logical line of Python: blank lines and comments do not count, a statement that spans several lines counts once, and so does a line containing several statements separated by semicolons. Forgetting the blessing, or blessing before 7 statements have passed, is an error. This rule was inspired by INTERCAL's PLEASE.
  • The last line of every program must be sorry everyone.

Comments

The word sniff starts a comment. The rest of the line may contain ordinary words and is ignored.

Examples

Hello, World!

gesundheit achooo achooooooooo achOooOooo achOOooOoO achOOoOOoo achOOoOOoo achOOoOOOO achoooooo acho achOoOoOOO atchoooooo achOOoOOoo achOOooOoo achOooooO achooooooooo achoooo
sorry everyone

FizzBuzz

This program is 9 statements long, so it needs one blessing.

zdrowie acho achOOoOOOo achOOOoOoO achOOoOOoO achOOoooOo achOOooOoO achOOOooOo acho atchoo acho atishoooooo achooo achOOoooO achoooooo acho achOOoooO achOOoOOo achoooo achooooooo
achoo salud acho achOOoOOOo achOOOoOoO achOOoOOoO achOOoooOo achOOooOoO achOOOooOo acho hatchooooooo acho achOOoooO achOOoOoO acho hatchoooooooo acho achOOoooo achooooooo
achoo achoo gesundheit achooo achooooooooo achOoooOOo achOOoOooO achOOOOoOo achOOOOoOo achOooooOo achOOOoOoO achOOOOoOo achOOOOoOo achooooooooo achoooo
achoo salute acho achOOoOOOo achOOOoOoO achOOoOOoO achOOoooOo achOOooOoO achOOOooOo acho hatchooooooo acho achOOooOO acho hatchoooooooo acho achOOoooo achooooooo
achoo achoo gesundheit achooo achooooooooo achOoooOOo achOOoOooO achOOOOoOo achOOOOoOo achooooooooo achoooo
achoo salute acho achOOoOOOo achOOOoOoO achOOoOOoO achOOoooOo achOOooOoO achOOOooOo acho hatchooooooo acho achOOoOoO acho hatchoooooooo acho achOOoooo achooooooo
achoo achoo gesundheit achooo achooooooooo achOooooOo achOOOoOoO achOOOOoOo achOOOOoOo achooooooooo achoooo
bless you
achoo sante achooooooo
achoo achoo gesundheit achooo achOOoOOOo achOOOoOoO achOOoOOoO achOOoooOo achOOooOoO achOOOooOo achoooo
sorry everyone

Errors

Errors are reported as SneezeErrors, for example:

  • 'hello' is not a sneeze
  • 12 o's? nobody sneezes that hard
  • nobody blessed me
  • blessed too early
  • you sneezed on everyone and never apologised
  • that file isn't a tissue. use .ach

Errors raised by the Python code itself are reported as, for example, Your program caught a TypeError. achoo.

Computational class

Every Python program can be written in ACHOO, because any character can be spelled and the interpreter executes the resulting Python. ACHOO is therefore Turing complete.

Implementation

The reference implementation, achoo.py, is a Python 3 program. It can run ACHOO files, translate Python into ACHOO (--sneezify) and show the Python inside an ACHOO file (--python). A Windows installer associates .ach files with the interpreter.

The ACHOO website has an online interpreter that runs in the browser, a converter between Python and ACHOO, and documentation with quizzes.

History

The first versions of ACHOO were a Brainfuck equivalent with commands written as sneezes such as achoo and achooo. Later versions added the blessing and apology rules, then switched to translating sneezes into Python, so that the language could run any Python program. ACHOO 5 replaced sneezes of up to 82 o's with reply words and world sneezes of at most 9 o's.

See also

External links