From dc4e10aaffac63f26d795c5f7be39fcd7ea23637 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Mon, 31 Oct 2022 16:39:41 +0100 Subject: [PATCH] Proofread README. --- README.md | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 9e52314..3e059ec 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -Horrlang is an esoteric language, you should not try it. +# Horrlang is an esoteric language, you should not try it. In Horrlang, memory and instructions are mixed, so you can use old instructions as new memory places, or do some metaprogramming rewriting your code as it runs. @@ -7,10 +7,11 @@ Just like in LISP but ... without lists ... good luck ... In Horrlang you have basically 2 pointers, a memory one and an instruction one. Both start at 0. The instruction one follows instructions that can move -the memory pointer. Have a look at the instruction set : +the memory pointer. Have a look at the instruction set: -Instruction set : +Instruction set: +``` Lx : Move memory pointer left x chars (defaults to 1). Rx : Move memory pointer right x chars (defaults to 1). @@ -21,14 +22,20 @@ I : Write from stdin to the current memory pointer. K : Decrement the value under the current memory pointer. H : Increment the value under the current memory pointer. Jx : Jump with the instruction pointer to the previous 'x' char if the value under the current memory pointer != 0. (Jumps to the beginning if no 'x' char is found) +``` -The Hello World : -R9R9R9R4OROROROROROROROROROROROHello World. -Or : -Hello World0KORJK +The Hello World: -Writing a serie of P should like : -R5OP5P or R3OP3 + R9R9R9R4OROROROROROROROROROROROHello World. -Write 123456789 using a loop : -R9R3:ROHLKJ:81 +Or: + + Hello World0KORJK + +Writing a serie of P should like: + + R5OP5P or R3OP3 + +Write 123456789 using a loop: + + R9R3:ROHLKJ:81