-
Notifications
You must be signed in to change notification settings - Fork 462
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
677 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.DS_Store | ||
.DS_Store | ||
Pods |
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
target "NUIDemo" do | ||
pod 'CoreParse', :git => 'https://github.com/phatmann/CoreParse.git', :branch => 'pod' | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
PODS: | ||
- CoreParse (1.1) | ||
|
||
DEPENDENCIES: | ||
- CoreParse (from `https://github.com/phatmann/CoreParse.git`, branch `pod`) | ||
|
||
EXTERNAL SOURCES: | ||
CoreParse: | ||
:branch: pod | ||
:git: https://github.com/phatmann/CoreParse.git | ||
|
||
SPEC CHECKSUMS: | ||
CoreParse: c8da33c94916683f2448e3cbc51ced058aa68c45 | ||
|
||
COCOAPODS: 0.29.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// NUIDeclaration.h | ||
// NUI | ||
// | ||
// Created by Tony Mann on 1/14/14. | ||
// Copyright (c) 2014 Tom Benner. All rights reserved. | ||
// | ||
|
||
#import "CoreParse.h" | ||
|
||
@interface NUIDeclaration : NSObject<CPParseResult> | ||
|
||
@property (strong) NSString *property; | ||
@property (strong) NSString *value; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// | ||
// Declaration.m | ||
// ParseTest | ||
// | ||
// Created by Tony Mann on 1/14/14. | ||
// Copyright (c) 2014 Tom Benner. All rights reserved. | ||
// | ||
|
||
#import "NUIDeclaration.h" | ||
|
||
@implementation NUIDeclaration | ||
|
||
- (id)initWithSyntaxTree:(CPSyntaxTree *)syntaxTree | ||
{ | ||
self = [self init]; | ||
|
||
if (nil != self) | ||
{ | ||
self.property = [[syntaxTree valueForTag:@"property"] identifier]; | ||
self.value = [syntaxTree valueForTag:@"value"]; | ||
} | ||
|
||
return self; | ||
} | ||
|
||
- (NSString *) description | ||
{ | ||
return [NSString stringWithFormat:@"<NUIDeclaration: %@ = %@>", self.property, self.value]; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// Definition.h | ||
// ParseTest | ||
// | ||
// Created by Tony Mann on 1/14/14. | ||
// Copyright (c) 2014 Tom Benner. All rights reserved. | ||
// | ||
|
||
#import "CoreParse.h" | ||
|
||
@interface NUIDefinition : NSObject<CPParseResult> | ||
|
||
@property (strong) NSString *variable; | ||
@property (strong) NSString *value; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// | ||
// Definition.m | ||
// ParseTest | ||
// | ||
// Created by Tony Mann on 1/14/14. | ||
// Copyright (c) 2014 Tom Benner. All rights reserved. | ||
// | ||
|
||
#import "NUIDefinition.h" | ||
#import "NUIVariableToken.h" | ||
|
||
@implementation NUIDefinition | ||
|
||
- (id)initWithSyntaxTree:(CPSyntaxTree *)syntaxTree | ||
{ | ||
self = [self init]; | ||
|
||
if (nil != self) | ||
{ | ||
self.variable = [[syntaxTree valueForTag:@"variable"] variable]; | ||
self.value = [syntaxTree valueForTag:@"value"]; | ||
} | ||
|
||
return self; | ||
} | ||
|
||
- (NSString *) description | ||
{ | ||
return [NSString stringWithFormat:@"<NUIDefinition: %@ = %@>", self.variable, self.value]; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// NUIParserDelegate.h | ||
// ParseTest | ||
// | ||
// Created by Tony Mann on 1/14/14. | ||
// Copyright (c) 2014 Tom Benner. All rights reserved. | ||
// | ||
|
||
#import "CoreParse.h" | ||
|
||
@interface NUIParserDelegate : NSObject <CPParserDelegate> | ||
|
||
@end |
Oops, something went wrong.
0571cee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tombenner, unfortunately the author of CoreParse does not want to make his code available via public CocoaPods. He recommends we include CoreParse via a submodule. Here is how this could work if we do this:
If a submodule is not acceptable for NUI, here are some alternatives: