From 78bb9f5d4ad96362aeb3fc42e021cfc9335cbd01 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 22 Nov 2010 22:50:21 +0100 Subject: [PATCH] Minsk: a line starting with "." acts as an end of the program --- ex-arith | 1 + ex-hello | 1 + ex-hello2 | 1 + ex-loop | 1 + minsk.c | 3 +++ 5 files changed, 7 insertions(+) diff --git a/ex-arith b/ex-arith index 9d94a08..2a7e0fd 100644 --- a/ex-arith +++ b/ex-arith @@ -21,3 +21,4 @@ @1100 +120000000000 +250000000000 +. diff --git a/ex-hello b/ex-hello index ac2294d..e4f9a01 100644 --- a/ex-hello +++ b/ex-hello @@ -9,3 +9,4 @@ @1000 +65 45 53 53 56 17 +42 56 60 53 44 16 +. diff --git a/ex-hello2 b/ex-hello2 index 4f71f89..a4c632e 100644 --- a/ex-hello2 +++ b/ex-hello2 @@ -13,3 +13,4 @@ +62 42 63 51 17 62 +56 42 40 60 50 71 +16 00 00 00 00 00 +. diff --git a/ex-loop b/ex-loop index 5f2177d..4f53bb6 100644 --- a/ex-loop +++ b/ex-loop @@ -15,3 +15,4 @@ @1000 +0000 0000 0144 +0000 0000 0001 +. diff --git a/minsk.c b/minsk.c index 2532dba..6ffe023 100644 --- a/minsk.c +++ b/minsk.c @@ -198,6 +198,9 @@ static void parse_in(void) continue; } + if (c[0] == '.') + return; + if (c[0] == '@') { c++; -- 2.39.2