From 01de40aa67599511f7843ab5b5aa24ec59a2768f Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 28 Sep 2012 12:11:58 +0300 Subject: [PATCH] Add a special keyword to terminate parsing --- source/parser.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/parser.cpp b/source/parser.cpp index 5094840..fce12e2 100644 --- a/source/parser.cpp +++ b/source/parser.cpp @@ -53,6 +53,11 @@ Statement Parser::parse() else src = format("%s[%s]", main_src, s); } + else if(st.keyword=="__end") + { + good = false; + return Statement(); + } else return st; } -- 2.45.2