diff options
author | Suzane Sant Ana <tetestonaldo@gmail.com> | 2017-12-31 14:27:06 -0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-31 14:27:06 -0200 |
commit | 42f9329bb3a028d374d6397991ac48b44064741e (patch) | |
tree | 1e75e2b3e122aeb863e3ffa037f6f64c4027fbf8 /hq9+.html.markdown | |
parent | e6b77595f2669d66ac7be43c6e6083cbff80a9a7 (diff) | |
parent | 70a36c9bd970b928adde06afb2bd69f6ba8e5d5c (diff) |
Merge pull request #1 from adambard/master
update
Diffstat (limited to 'hq9+.html.markdown')
-rw-r--r-- | hq9+.html.markdown | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/hq9+.html.markdown b/hq9+.html.markdown new file mode 100644 index 00000000..3f0c5fba --- /dev/null +++ b/hq9+.html.markdown @@ -0,0 +1,39 @@ +--- +language: HQ9+ +filename: hq9+.html +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) |