;#
Two commands. One counts, the other prints what it counted.
caird coinheringaahing · Turing complete: no · ●○○ easy · esolangs.org
Tested with 2 known programs · Test method
Run it
The idea
;#, said SemicolonHash, was made by the PPCG user caird coinheringaahing. ; adds 1 to an accumulator. # prints the accumulator modulo 127 as a character and sets it back to 0. So every character of output is spelled as that many semicolons, 72 of them for an H.
Read the story
esolangs.org files it under output only and unusable for programming. There is no input, no memory but the one number, and no way to loop.
The machine
| Char | Does |
|---|---|
; | Add 1 to the accumulator |
# | Print the accumulator modulo 127 as a character, then set it to 0 |
Every other character does nothing, so a long row of semicolons can be broken over lines.
Example
The first example prints the language's own name.
The first example prints the language's own name. 59 semicolons make a ;, 35 make a #.
Its second counts 160, and 160 modulo 127 is 33, an exclamation mark.
Further
See also
Also in Jokes
Write your own in Run Convert a program from ;#
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: semicolonhash.
Command line
shib run semicolonhash -e ';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;#;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;#'shib manual semicolonhashSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/semicolonhash.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org