Skip to content
Newer
Older
100755 41 lines (34 sloc) 1.05 KB
069d48a @rentzsch [CHANGE] Add MiscMerge directly to project (back in the rentzsch.com …
authored
1 //
2 // _MiscMergeEndifCommand.m
3 //
4 // Written by Don Yacktman and Carl Lindberg
5 //
6 // Copyright 2001-2004 by Don Yacktman and Carl Lindberg.
7 // All rights reserved.
8 //
9 // This notice may not be removed from this source code.
10 //
11 // This header is included in the MiscKit by permission from the author
12 // and its use is governed by the MiscKit license, found in the file
13 // "License.rtf" in the MiscKit distribution. Please refer to that file
14 // for a list of all applicable permissions and restrictions.
15 //
16
17 #import "_MiscMergeEndifCommand.h"
18 //#import <Foundation/NSUtilities.h>
19 #import "_MiscMergeIfCommand.h"
20 #import "MiscMergeCommandBlock.h"
21
22 @implementation _MiscMergeEndifCommand
23
24 - (BOOL)parseFromString:(NSString *)aString template:(MiscMergeTemplate *)template
25 {
26 _MiscMergeIfCommand *ifCommand = [[template currentCommandBlock] owner];
27
28 if (![ifCommand isKindOfCommandClass:@"If"])
29 {
30 [template reportParseError:@"Mismatched endif command"];
31 }
32 else
33 {
34 [ifCommand handleEndifInTemplate:template];
35 }
36
37 return YES;
38 }
39
40 @end
Something went wrong with that request. Please try again.