29 lines
577 B
Objective-C
29 lines
577 B
Objective-C
//
|
|
// 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;
|
|
|
|
- (void)beginIgnoringWhitespaceTokens;
|
|
- (void)beginAcceptingWhitespaceTokens;
|
|
- (void)endIgnoringOrAcceptingWhitespaceTokens;
|
|
|
|
- (BOOL)hasMoreTokens;
|
|
|
|
- (MPToken *)currentToken;
|
|
- (MPToken *)peekNextToken;
|
|
- (void)currentTokenConsumed;
|
|
|
|
@end
|