Standardization my shazam
This commit is contained in:
parent
e3c1672b19
commit
f8ec204f72
28
README
28
README
|
@ -1,26 +1,26 @@
|
||||||
Horrlang is an esoteric language, you should not try it.
|
Horrlang is an esoteric language, you should not try it.
|
||||||
|
|
||||||
In Horrlang, memory and instruction are mixed, so you can use old instruction
|
In Horrlang, memory and instructions are mixed, so you can use old instructions
|
||||||
as new memory places or do some metaprogramation rewriting your code as it run.
|
as new memory places, or do some metaprogramming rewriting your code as it runs.
|
||||||
|
|
||||||
Just like in LISP but ... without lists ... good luck ...
|
Just like in LISP but ... without lists ... good luck ...
|
||||||
|
|
||||||
So in Horrlang you have basically 2 pointers, a memory one and an instruction
|
In Horrlang you have basically 2 pointers, a memory one and an instruction
|
||||||
one. Both starts at 0. The instruction one follow instructions that can move
|
one. Both start at 0. The instruction one follows instructions that can move
|
||||||
the memory pointer, look at instruction set :
|
the memory pointer. Have a look at instruction set :
|
||||||
|
|
||||||
Instruction set :
|
Instruction set :
|
||||||
|
|
||||||
Lx : Move memory head left x chars (defaults to 1)
|
Lx : Move memory pointer left x chars (defaults to 1).
|
||||||
Rx : Move memory head right x chars (defaults to 1)
|
Rx : Move memory pointer right x chars (defaults to 1).
|
||||||
|
|
||||||
Nx : Goto the next char that is x
|
Nx : Goto the next char that is x with the instruction pointer.
|
||||||
Px : Goto the prev char that is x
|
Px : Goto the prev char that is x with the instruction pointer.
|
||||||
O : Output current value under memory head
|
O : Output current value under memory pointer.
|
||||||
I : Read from stdin to the current memory head location
|
I : Write from stdin to the current memory pointer.
|
||||||
K : Decrement current memory location
|
K : Decrement the value under the current memory pointer.
|
||||||
H : Increment current memory location
|
H : Increment the value under the current memory pointer.
|
||||||
Jx : Jump to prev char X if current memory location != 0
|
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 :
|
The Hello World :
|
||||||
R9R9R9R4OROROROROROROROROROROROHello World.
|
R9R9R9R4OROROROROROROROROROROROHello World.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user