29 lines
903 B
Objective-C
29 lines
903 B
Objective-C
//
|
|
// MPElementParser.h
|
|
// MathPad
|
|
//
|
|
// Created by Kim Wittenburg on 10.09.14.
|
|
// Copyright (c) 2014 Kim Wittenburg. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "MPParsedProduct.h"
|
|
#import "MPParseError.h"
|
|
|
|
#define MPMaximumOperatorChainLength NSUIntegerMax
|
|
|
|
@interface MPElementParser : NSObject
|
|
|
|
- (NSArray *)parseElement:(NSString *)string
|
|
previousProduct:(MPParsedProduct *)previousProduct
|
|
nextFactor:(id<MPParsedFactor>)nextFactor
|
|
definesVariable:(BOOL)flag
|
|
definedVariable:(NSString *__autoreleasing *)variableName
|
|
error:(out MPParseError *__autoreleasing *)error;
|
|
- (NSArray *)parseElement:(NSString *)string
|
|
previousProduct:(MPParsedProduct *)previousProduct
|
|
nextFactor:(id<MPParsedFactor>)nextFactor
|
|
error:(out MPParseError *__autoreleasing *)error;
|
|
|
|
@end
|