aboutsummaryrefslogblamecommitdiff
path: root/consts.h
blob: 10cd951396fd5a71cea4e087dda903e096ba6642 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11





                          




                              
                                      
                       
            
                                

                              
                          

                           
                           
                             

                               

  
                             

      
#ifndef CONSTS_H
#define CONSTS_H

enum ErrCode {
    SYN_ERR_NOT_AN_ID,
    SYN_ERR_CAN_NOT_APPLY,
    RUN_ERR_UNBOUND_VAR,
    SYN_ERR_MISS_OR_EXTRA_EXP,
    SYN_ERR_EMPTY_PARA_LIST,
    RUN_ERR_WRONG_NUM_OF_ARGS,
    SYN_ERR_EMPTY_COMB,
    READ_ERR_UNEXPECTED_RIGHT_BRACKET,
    RUN_ERR_WRONG_TYPE,
    INT_ERR,
    PAR_ERR_ILLEGAL_CHAR_IN_ESC,
    RUN_ERR_UNKNOWN_CHAR_NAME,
    PAR_ERR_IMPROPER_PAIR,
    PAR_ERR_IMPROPER_VECT,
    SYN_ERR_BAD_FORMAL,
    RUN_ERR_QUEUE_OVERFLOW,
    RUN_ERR_STACK_OVERFLOW,
    RUN_ERR_NUMERIC_OVERFLOW,
    RUN_ERR_VALUE_OUT_OF_RANGE,
    RUN_ERR_GC_OVERFLOW
};

extern const char *ERR_MSG[];

#endif