From 5ca4d7acb5545050a731b0adc2e39b3ed65b7fc9 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 15 Apr 2017 13:40:17 +0200 Subject: Add README.md, example --- source/primitives/conditional.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/primitives') diff --git a/source/primitives/conditional.d b/source/primitives/conditional.d index 678f516..08c0f52 100644 --- a/source/primitives/conditional.d +++ b/source/primitives/conditional.d @@ -26,7 +26,7 @@ bool drop(Token token) { case "if" : eval_if; break; case "then" : eval_then; break; case "else" : eval_else; break; - default : capture(token); break; + default : capture(token); break; } } else { capture(token); @@ -55,7 +55,7 @@ void eval_then() { void eval_else() { if ( concluded ) { - throw new Exception("`else` without preceding `if`"); + throw new Exception("`else` without preceding `if`"); } else { drop_mode = false; concluded = true; @@ -72,6 +72,6 @@ Stack!Token discharge() { buffer.nullify; return result; } else { - throw new Exception("unconcluded conditional may not be discharged"); + throw new Exception("unconcluded conditional may not be discharged"); } } -- cgit v1.2.3