-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathCSSParser.h
More file actions
32 lines (27 loc) · 726 Bytes
/
CSSParser.h
File metadata and controls
32 lines (27 loc) · 726 Bytes
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
//
// CSSParser.h
// CSSSample
//
// Created by Sam Stewart on 7/16/11.
// Copyright 2011 Float:Right Ltd. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface CSSParser : NSObject {
@private
NSMutableDictionary* _ruleSets;
NSMutableArray* _activeCssSelectors;
NSMutableDictionary* _activeRuleSet;
NSString* _activePropertyName;
NSString* _lastTokenText;
int _lastToken;
union {
struct {
int InsideDefinition : 1;
int InsideProperty : 1;
int InsideFunction : 1;
} Flags;
int _data;
} _state;
}
- (NSDictionary*)parseFilename:(NSString*)filename;
@end