Fix README, thx shazam, and FIX a bug while parsing command line arguments
This commit is contained in:
parent
f8ec204f72
commit
4de9d41fad
2
README
2
README
|
@ -7,7 +7,7 @@ Just like in LISP but ... without lists ... good luck ...
|
||||||
|
|
||||||
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 start at 0. The instruction one follows instructions that can move
|
one. Both start at 0. The instruction one follows instructions that can move
|
||||||
the memory pointer. Have a look at instruction set :
|
the memory pointer. Have a look at the instruction set :
|
||||||
|
|
||||||
Instruction set :
|
Instruction set :
|
||||||
|
|
||||||
|
|
|
@ -113,4 +113,4 @@ class Machine:
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
Machine(sys.argv[1], sys.stdin.read, sys.stdout.write,
|
Machine(sys.argv[1], sys.stdin.read, sys.stdout.write,
|
||||||
int(sys.argv[2]) if len(sys.argv) >= 2 else None).run()
|
int(sys.argv[2]) if len(sys.argv) > 2 else None).run()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user