Skip to content
This repository
tag: 0.6.1
Fetching contributors…

Cannot retrieve contributors at this time

file 102 lines (98 sloc) 4.629 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
// Copyright 2010 Todd Ditchendorf
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#import <ParseKit/ParseKit.h>

@class XPathAssembler;
@class PKAssembly;

@interface XPathParser : PKSequence {
    XPathAssembler *xpathAssembler;
    PKCollectionParser *locationPath;
    PKCollectionParser *absoluteLocationPath;
    PKCollectionParser *relativeLocationPath;
    PKCollectionParser *step;
    PKCollectionParser *axisSpecifier;
    PKCollectionParser *axisName;
    PKCollectionParser *nodeTest;
    PKCollectionParser *predicate;
    PKCollectionParser *predicateExpr;
    PKCollectionParser *abbreviatedAbsoluteLocationPath;
    PKCollectionParser *abbreviatedRelativeLocationPath;
    PKCollectionParser *abbreviatedStep;
    PKCollectionParser *abbreviatedAxisSpecifier;
    PKCollectionParser *expr;
    PKCollectionParser *primaryExpr;
    PKCollectionParser *functionCall;
    PKCollectionParser *argument;
    PKCollectionParser *unionExpr;
    PKCollectionParser *pathExpr;
    PKCollectionParser *filterExpr;
    PKCollectionParser *orExpr;
    PKCollectionParser *andExpr;
    PKCollectionParser *equalityExpr;
    PKCollectionParser *relationalExpr;
    PKCollectionParser *additiveExpr;
    PKCollectionParser *multiplicativeExpr;
    PKCollectionParser *unaryExpr;
    PKCollectionParser *exprToken;
    PKParser *literal;
    PKParser *number;
    PKCollectionParser *operator;
    PKCollectionParser *operatorName;
    PKParser *multiplyOperator;
    PKParser *functionName;
    PKCollectionParser *variableReference;
    PKCollectionParser *nameTest;
    PKCollectionParser *nodeType;
    PKCollectionParser *QName;
}
- (id)parse:(NSString *)s;
- (PKAssembly *)assemblyWithString:(NSString *)s;

@property (nonatomic, retain) PKCollectionParser *locationPath;
@property (nonatomic, retain) PKCollectionParser *absoluteLocationPath;
@property (nonatomic, retain) PKCollectionParser *relativeLocationPath;
@property (nonatomic, retain) PKCollectionParser *step;
@property (nonatomic, retain) PKCollectionParser *axisSpecifier;
@property (nonatomic, retain) PKCollectionParser *axisName;
@property (nonatomic, retain) PKCollectionParser *nodeTest;
@property (nonatomic, retain) PKCollectionParser *predicate;
@property (nonatomic, retain) PKCollectionParser *predicateExpr;
@property (nonatomic, retain) PKCollectionParser *abbreviatedAbsoluteLocationPath;
@property (nonatomic, retain) PKCollectionParser *abbreviatedRelativeLocationPath;
@property (nonatomic, retain) PKCollectionParser *abbreviatedStep;
@property (nonatomic, retain) PKCollectionParser *abbreviatedAxisSpecifier;
@property (nonatomic, retain) PKCollectionParser *expr;
@property (nonatomic, retain) PKCollectionParser *primaryExpr;
@property (nonatomic, retain) PKCollectionParser *functionCall;
@property (nonatomic, retain) PKCollectionParser *argument;
@property (nonatomic, retain) PKCollectionParser *unionExpr;
@property (nonatomic, retain) PKCollectionParser *pathExpr;
@property (nonatomic, retain) PKCollectionParser *filterExpr;
@property (nonatomic, retain) PKCollectionParser *orExpr;
@property (nonatomic, retain) PKCollectionParser *andExpr;
@property (nonatomic, retain) PKCollectionParser *equalityExpr;
@property (nonatomic, retain) PKCollectionParser *relationalExpr;
@property (nonatomic, retain) PKCollectionParser *additiveExpr;
@property (nonatomic, retain) PKCollectionParser *multiplicativeExpr;
@property (nonatomic, retain) PKCollectionParser *unaryExpr;
@property (nonatomic, retain) PKCollectionParser *exprToken;
@property (nonatomic, retain) PKParser *literal;
@property (nonatomic, retain) PKParser *number;
@property (nonatomic, retain) PKCollectionParser *operator;
@property (nonatomic, retain) PKCollectionParser *operatorName;
@property (nonatomic, retain) PKParser *multiplyOperator;
@property (nonatomic, retain) PKParser *functionName;
@property (nonatomic, retain) PKCollectionParser *variableReference;
@property (nonatomic, retain) PKCollectionParser *nameTest;
@property (nonatomic, retain) PKCollectionParser *nodeType;
@property (nonatomic, retain) PKCollectionParser *QName;
@end
Something went wrong with that request. Please try again.