MusicKit  0.0.0
tokens.h
00001 /*
00002   $Id$
00003   Defined In: The MusicKit
00004 
00005   Description: 
00006   Original Author: David Jaffe
00007 
00008   Copyright (c) 1988-1992, NeXT Computer, Inc.
00009   Portions Copyright (c) 1994 NeXT Computer, Inc. and reproduced under license from NeXT
00010   Portions Copyright (c) 1994 Stanford University
00011 */
00012 /*
00013 Modification history:
00014 
00015   $Log$
00016   Revision 1.3  2001/07/02 17:53:25  sbrandon
00017   - added newline onto end of file
00018 
00019   Revision 1.2  1999/07/29 01:26:18  leigh
00020   Added Win32 compatibility, CVS logs, SBs changes
00021 
00022   daj/04/23/90 - Created from _musickit.h 
00023   daj/01/14/91 - Added _MK_substring
00024 */
00025 
00026 typedef enum __MKToken {   
00027          _MK_undef = 0400,  
00028          _MK_param = ((int)MK_waveTable + 1), /* 285 */
00029          _MK_objDefStart,
00030          _MK_typedVar,
00031          _MK_untypedVar,
00032          _MK_uMinus,
00033          _MK_intVarDecl,
00034          _MK_doubleVarDecl,
00035          _MK_stringVarDecl,
00036          _MK_varDecl,
00037          _MK_envVarDecl,
00038          _MK_waveVarDecl,
00039          _MK_objVarDecl,
00040          _MK_envelopeDecl,
00041          _MK_waveTableDecl,
00042          _MK_objectDecl,
00043          _MK_include,
00044          _MK_print,
00045          _MK_time,
00046          _MK_part,
00047          _MK_partInstance,
00048          _MK_scoreInstance,
00049          _MK_begin,
00050          _MK_end,
00051          _MK_comment,
00052          _MK_endComment,
00053          _MK_to,
00054          _MK_tune,
00055          _MK_ok,
00056          _MK_noteTagRange,
00057          _MK_dB,
00058          _MK_ran,
00059          _MK_dataFile,
00060          _MK_xEnvValue,
00061          _MK_yEnvValue,
00062          _MK_smoothingEnvValue,
00063          _MK_hNumWaveValue,
00064          _MK_ampWaveValue,
00065          _MK_phaseWaveValue,
00066          _MK_lookupEnv,
00067          _MK_info,
00068          _MK_putGlobal,
00069          _MK_getGlobal,
00070          _MK_seed,
00071          _MK_ranSeed,
00072          _MK_LEQ,
00073          _MK_GEQ,
00074          _MK_EQU,
00075          _MK_NEQ,
00076          _MK_OR,
00077          _MK_AND,
00078          _MK_repeat,
00079          _MK_if,
00080          _MK_else,
00081          _MK_while,
00082          _MK_do,
00083          _MK_substring,
00084          /* End marker */
00085          _MK_highestToken
00086     } _MKToken;
00087 
00088 
00089 /* MKTokens */
00090 #define _MK_VALIDTOKEN(_x) \
00091    ((((int)(_x))>=((int)_MK_undef))&&(((int)(_x))<((int)_MK_highestToken)))
00092 
00093 /* This may be used to write names of _MKTokens, MKDataTypes,
00094    MKMidiPars and MKNoteTypes. */
00095 extern const char * _MKTokName(int tok);
00096 extern const char * _MKTokNameNoCheck(int tok);