home *** CD-ROM | disk | FTP | other *** search
- /*
-
- EV_ERR.H -- EV_ERROR enumerations for the expression evaluator.
- Copyright 1987-1993, Authorware, Inc.
-
- Revision History
-
- 1/21/93 - Release Version.
-
- */
-
- #ifndef _EV_ERR_
- #define _EV_ERR_
-
-
- /*
- EV_ERROR Expression evaluator status codes. An EV_ERROR is returned
- by the expression evaluator.
- */
-
- typedef enum
- {
- EXPR_OK = 0, // no problems
- EXPR_TOO_LONG = 1, // The expression has exceeded a length limit
- TOK_TOO_LONG = 2, // token too long (parser)
- NO_QUOTE = 3, // missing " (unterminated string)
- UNKNOWN_OP = 4, // unknown operator/illegal char
- SYNTAX_ERR = 5, // General syntax error
- OPERATOR_ERR = 6, // bad operand syntax
- BAD_IF = 7, // Syntax error in an IF statement
- MISSING_RP = 8, // missing ')'
- MISSING_LP = 9, // missing '(' following a function reference
- STACK_OVER = 10, // expr to complex (stack overflow)
- EXPR_NO_MEM = 11, // out of memory
- CANT_ASSIGN = 12, // assignment not allowed; not a var or not assignable
- NEED_ASSIGN = 13, // expression should have an assigment operation
- OPERAND_MISSING = 14, // missing operand
- TOO_MANY_FCN_ARGS = 15, /* The fcn prototype shows less args than
- the user specified in his expression */
-
- VAR_REQD_HERE = 16, /* The user positioned the wrong type of argument in
- a function call (a variable reference was required
- for that arg) */
-
- NEED_FCN_OR_ASSIGN = 17,/* An expression needed to start with either a
- function call or a variable followed by ":=". */
-
- INTERNAL_ERR = 18, // never returned, it's the STR# index for internal errs
- UNKNOWN_ERR = 19, // never returned, catch-all for bad eval_status
-
-
- UNDEF_FUNC = 21, // undefined function
- UNDEF_VAR = 22, // undefined variable
- UNDEF_ICON = 23, // undefine icon title (in @ clause)
- CANT_AT_SYS = 24, // can't use @ with that system var
- CANT_AT_USER = 25, // can't use @ with user var
- NOT_UNIQUE = 26, // icon title not unique (in @ clause)
- NAME_TOO_LONG = 27, // variable or function name too long
- RESERVED_TITLE = 28, // trying to @-reference a reserved icon title
- TOO_FEW_FCN_ARGS = 29, // too few arguments for a function
- NOT_EMBEDABLE = 30, // function is not embedable
- RESERVED_WORD = 31, // variable or function is not available
- // in this version of the software
- CANT_AT_LIB = 32, // can't use @ in a library
-
-
- } EV_ERROR;
-
- #endif
-
-
-