stage4/stage4.hh
changeset 625 c0bda77b37a0
parent 594 c8092e909886
child 746 c7219a37cc39
equal deleted inserted replaced
412:aad38592bdde 625:c0bda77b37a0
    37  */
    37  */
    38 
    38 
    39 
    39 
    40 #include "../absyntax/absyntax.hh"
    40 #include "../absyntax/absyntax.hh"
    41 
    41 
       
    42 
       
    43 void stage4err(const char *stage4_generator_id, symbol_c *symbol1, symbol_c *symbol2, const char *errmsg, ...);
       
    44 
       
    45 
    42 class stage4out_c {
    46 class stage4out_c {
    43   public:
    47   public:
    44     std::string indent_level;
    48     std::string indent_level;
    45     std::string indent_spaces;
    49     std::string indent_spaces;
    46 
    50 
    55     void disable_output(void);
    59     void disable_output(void);
    56 
    60 
    57     void indent_right(void);
    61     void indent_right(void);
    58     void indent_left(void);
    62     void indent_left(void);
    59 
    63 
    60     void *print(const char *str);
    64     void *print(          std::string  value);
    61     void *print(std::string str);
    65     void *print(           const char *value);
       
    66     //void *print(               int64_t value); // not required, since we have long long int, or similar
       
    67     //void *print(              uint64_t value); // not required, since we have long long int, or similar
       
    68     void *print(              real64_t value);
       
    69     void *print(                   int value);
       
    70     void *print(              long int value);
       
    71     void *print(         long long int value);
       
    72     void *print(unsigned           int value);
       
    73     void *print(unsigned      long int value);
       
    74     void *print(unsigned long long int value);
    62     
    75     
    63     void *print_integer(int integer);
       
    64     void *print_long_integer(unsigned long l_integer, bool suffix=true);
    76     void *print_long_integer(unsigned long l_integer, bool suffix=true);
    65     void *print_long_long_integer(unsigned long long ll_integer, bool suffix=true);
    77     void *print_long_long_integer(unsigned long long ll_integer, bool suffix=true);
       
    78 
    66 
    79 
    67     void *printupper(const char *str);
    80     void *printupper(const char *str);
    68     void *printupper(std::string str);
    81     void *printupper(std::string str);
    69 
    82 
    70     void *printlocation(const char *str);
    83     void *printlocation(const char *str);