Archived
1
This repository has been archived on 2022-08-08. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
mathpad/MathPad/MPTokenStream.h
Kim Wittenburg f4f924bd71 Cleaned Imports
2014-11-08 01:05:08 +01:00

29 lines
568 B
Objective-C

//
// MPTokenStream.h
// MathPad
//
// Created by Kim Wittenburg on 20.09.14.
// Copyright (c) 2014 Kim Wittenburg. All rights reserved.
//
@class MPTokenStream;
@protocol MPToken;
@interface MPTokenStream : NSObject
- (instancetype)initWithTokens:(NSArray *)tokens;
@property (nonatomic, copy) NSArray *tokens;
- (void)beginIgnoringWhitespaceTokens;
- (void)beginAcceptingWhitespaceTokens;
- (void)endIgnoringOrAcceptingWhitespaceTokens;
- (BOOL)hasMoreTokens;
- (id<MPToken>)currentToken;
- (id<MPToken>)peekNextToken;
- (void)currentTokenConsumed;
@end