Fix README, thx shazam, and FIX a bug while parsing command line arguments

This commit is contained in:
Julien 2011-09-23 10:59:29 +02:00
parent f8ec204f72
commit 4de9d41fad
2 changed files with 2 additions and 2 deletions

2
README
View File

@ -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
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 :

View File

@ -113,4 +113,4 @@ class Machine:
if __name__ == "__main__":
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()