From 4de9d41fadb308de27cd5810db6c5fb472153509 Mon Sep 17 00:00:00 2001 From: Julien Date: Fri, 23 Sep 2011 10:59:29 +0200 Subject: [PATCH] Fix README, thx shazam, and FIX a bug while parsing command line arguments --- README | 2 +- horrlang.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README b/README index 7443619..ec9af7b 100644 --- a/README +++ b/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 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 : diff --git a/horrlang.py b/horrlang.py index 1ea9b7e..29de523 100755 --- a/horrlang.py +++ b/horrlang.py @@ -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()