diff options
author | Alexey Nazaroff <alexx.nazaroff@gmail.com> | 2017-05-25 15:29:12 +0300 |
---|---|---|
committer | ven <vendethiel@hotmail.fr> | 2017-05-25 12:29:12 +0000 |
commit | c14b5f572eb0a9a1fcc5e83ca5bf4f1a4c81431f (patch) | |
tree | e23f1d0e2fccf778d2be4e2c3e96457c5c1594c5 /hq9+.html.markdown | |
parent | 3c7750b5639cc4072014af9dafceb7cf6ec5e15d (diff) |
[hq9+] Added manual for HQ9+ programming language (#2431)
Diffstat (limited to 'hq9+.html.markdown')
-rw-r--r-- | hq9+.html.markdown | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/hq9+.html.markdown b/hq9+.html.markdown new file mode 100644 index 00000000..219930b8 --- /dev/null +++ b/hq9+.html.markdown @@ -0,0 +1,38 @@ +--- +language: HQ9+ +contributors: + - ["Alexey Nazaroff", "https://github.com/rogaven"] +--- + +HQ9+ is a joke programming language created by Cliff Biffle. It has only four commands and it isn't Turing-complete. + +``` +There is only 4 commands, represented by next characters +H: print "Hello, world!" +Q: print the program's source code (a Quine) +9: print the lyrics to "99 Bottles of Beer" ++: add one to the accumulator (the value of the accumulator cannot be accessed) +Any other character is ignored. + +Ok. Let's write some program: + HQ9 + +Result: + Hello world! + HQ9 + +HQ9+ is very simple, but allows you to do some things that are very difficult +in other languages. For example, here is a program that creates three copies of +itself on the screen: + QQQ + +This produces: + QQQ + QQQ + QQQ +``` + +And that's all. There are a lot of interpreters for HQ9+. Below you can find one of them + ++ [One of online interpreters](https://almnet.de/esolang/hq9plus.php) ++ [HQ9+ official website](http://cliffle.com/esoterica/hq9plus.html) |