Archived
1

Improved Evaluation

This commit is contained in:
Kim Wittenburg
2014-09-28 23:50:18 +02:00
parent 43b6f78afb
commit d67a1949e9
19 changed files with 841 additions and 89 deletions

27
MathPad/MPTokenStream.h Normal file
View File

@@ -0,0 +1,27 @@
//
// MPTokenStream.h
// MathPad
//
// Created by Kim Wittenburg on 20.09.14.
// Copyright (c) 2014 Kim Wittenburg. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "MPToken.h"
@interface MPTokenStream : NSObject
- (instancetype)initWithTokens:(NSArray *)tokens;
@property (nonatomic, copy) NSArray *tokens;
@property (nonatomic, getter=isIgnoringWhitespaceTokens) BOOL ignoringWhitespaceTokens; // Default: YES
@property (readonly, nonatomic) NSUInteger currentLocation;
- (void)reset;
- (BOOL)hasMoreTokens;
- (MPToken *)nextToken;
- (MPToken *)nextTokenOfType:(MPTokenType)type;
@end