//
// MPVariable.h
// MathPad
//
// Created by Kim Wittenburg on 09.10.14.
// Copyright (c) 2014 Kim Wittenburg. All rights reserved.
//
#import "MPTerm.h"
/*!
@header
This file contains the MPVariable class.
*/
@class MPVariable;
/*!
@class MPVariable
@abstract This class represents a variable.
@discussion Variables are evaluated in the @link
//apple_ref/occ/cl/MPEvaluationContext@/link and generate
errors if they are not defined.
*/
@interface MPVariable : MPTerm
/*!
@method initWithVariableName:
@abstract Initializes a MPVariable with the specified
variableName
@param variableName
The name of the variable. Must not be nil and must
be at least one character long.
@return A new MPVariable instance.
*/
- (instancetype)initWithVariableName:(NSString *)variableName; /* designated initializer */
/*!
@property variableName
@abstract The receiver's variable name.
*/
@property (readonly, nonatomic, strong) NSString *variableName;
@end