//
// MPExpressionTokenizer.h
// MathPad
//
// Created by Kim Wittenburg on 19.09.14.
// Copyright (c) 2014 Kim Wittenburg. All rights reserved.
//
@class MPExpressionTokenizer, MPExpression;
/*!
@class MPExpressionTokenizer
@abstract The expression tokenizer class convers an @link
MPExpression@/link instance into an array of tokens.
*/
@interface MPExpressionTokenizer : NSObject
/*!
@method tokenizeExpression:
@abstract Converts an @link MPExpression@/link instance into
an array of tokens.
@discussion The objects in the returned array all conform to the @link
//apple_ref/occ/intf/MPToken@/link protocol. Function
tokens are not copied from the expression so they
can still be mutated.
This method can be safely called from multiple threads.
@param expression
The expression to be tokenized.
@return An array of objects that conform to the @link
//apple_ref/occ/intf/MPToken@/link protocol.
*/
+ (NSArray *)tokenizeExpression:(MPExpression *)expression;
@end