//
//  PSDictDecompiler.h
//  GSFontTools
//
//  Created by Georg Seifert on 31.07.11.
//  Copyright 2011 schriftgestaltung.de. All rights reserved.
//

#import <GSFontTools/PSByteCodeBase.h>

@class CFFIndexedStrings;

/// @see `DictDecompiler` in `fonttools/misc/psCharStrings.py`
@interface PSDictDecompiler : PSByteCodeBase

- (void)decompile:(NSData *)file;

- (instancetype)initWithStrings:(CFFIndexedStrings *)strings parent:(id)parent;

@property (nonatomic, strong) NSMutableDictionary *dict;

//- (id)performOperator:(int)op pos:(NSUInteger *)pos NS_RETURNS_RETAINED;

- (NSNumber *)arg_number:(NSString *)name;
- (id)arg_SID:(NSString *)name;
- (id)arg_array:(NSString *)name;
- (id)arg_blendList:(NSString *)name;
- (id)arg_delta:(NSString *)name;

@end
