home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / IRIT / IRITS.ZIP / INPTPRSG.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-05  |  2.5 KB  |  63 lines

  1. /*****************************************************************************
  2. *   "Irit" - the 3d polygonal solid modeller.                     *
  3. *                                         *
  4. * Written by:  Gershon Elber                Ver 0.2, Mar. 1990   *
  5. ******************************************************************************
  6. * General, Visible to others, definitions for the Input Parser module.         *
  7. *****************************************************************************/
  8.  
  9. #ifndef    INPT_PRSR_GH
  10. #define    INPT_PRSR_GH
  11.  
  12. /*****************************************************************************
  13. * The global (visible to others) function prototypes:                 *
  14. *****************************************************************************/
  15. int InputParser(void);
  16. /* If the above returns NULL object the following might be called to find.   */
  17. /* What went wrong (In the parsing stage, or in the evaluation stage.         */
  18. int InptPrsrParseError(char **Message);  /* Last error found in Parse stage. */
  19. int InptPrsrEvalError(char **Message);    /* Last error found in evaluation. */
  20.  
  21. void FileInclude(char *FileName);  /* Used to insert files on include stack. */
  22.  
  23. void AliasReset(void);                /* Reset the aliases buffer. */
  24.  
  25. /*****************************************************************************
  26. * Error    numbers    as located during the parsing process:                 *
  27. *****************************************************************************/
  28. #define IP_ERR_WrongSyntax    1
  29. #define IP_ERR_ParamExpect    2
  30. #define IP_ERR_OneOperand    3
  31. #define IP_ERR_TwoOperand    4
  32. #define IP_ERR_StackOV        5
  33. #define IP_ERR_ParaMatch    6
  34. #define IP_ERR_UndefToken    7
  35. #define IP_ERR_UndefFunc    8
  36. #define IP_ERR_NameTooLong    9
  37. #define IP_ERR_ParamFunc    10
  38. #define IP_ERR_NoParamFunc    11
  39.  
  40. /*****************************************************************************
  41. * Error    as located during the evaluation process:                 *
  42. *****************************************************************************/
  43. #define    IE_ERR_FatalError    1
  44. #define    IE_ERR_DivByZero    2
  45. #define IE_ERR_NoObjMethod    3
  46. #define IE_ERR_TypeMismatch    4
  47. #define IE_ERR_AssignLeftOp    5
  48. #define IE_ERR_MixedObj        6
  49. #define IE_ERR_UndefObject    7
  50. #define IE_ERR_NoAssignment    8
  51. #define IE_ERR_FPError        9
  52. #define IE_ERR_NumPrmMismatch    10
  53. #define IE_ERR_MatPower        11
  54. #define IE_ERR_FreeSimple    12
  55. #define IE_ERR_ModifIterVar    13
  56. #define IE_ERR_BooleanErr    14
  57. #define IE_ERR_ListTooLong    15
  58. #define IE_ERR_NonParamInList    16
  59. #define IE_ERR_FreeNoRefObj    17
  60. #define IE_ERR_DataPrsrError    18
  61.  
  62. #endif    /* INPT_PRSR_GH */
  63.