equal
deleted
inserted
replaced
56 |
56 |
57 #include "../stage4.hh" |
57 #include "../stage4.hh" |
58 |
58 |
59 |
59 |
60 |
60 |
|
61 #define ERROR error_exit(__FILE__,__LINE__) |
|
62 /* function defined in main.cc */ |
|
63 extern void error_exit(const char *file_name, int line_no); |
|
64 |
61 |
65 |
62 |
66 |
63 |
67 |
64 //class generate_iec_c: public iterator_visitor_c { |
68 //class generate_iec_c: public iterator_visitor_c { |
65 class generate_iec_c: public visitor_c { |
69 class generate_iec_c: public visitor_c { |
151 return symbol->param_name->accept(*this); |
155 return symbol->param_name->accept(*this); |
152 } |
156 } |
153 #endif |
157 #endif |
154 |
158 |
155 |
159 |
|
160 /* A class used to identify an entry (literal, variable, etc...) in the abstract syntax tree with an invalid data type */ |
|
161 /* This is only used from stage3 onwards. Stages 1 and 2 will never create any instances of invalid_type_name_c */ |
|
162 // SYM_REF0(invalid_type_name_c) |
|
163 void *visit(invalid_type_name_c *symbol) { |
|
164 ERROR; |
|
165 return NULL; |
|
166 } |
156 |
167 |
157 |
168 |
158 /******************/ |
169 /******************/ |
159 /* 2.1.6 Pragmas */ |
170 /* 2.1.6 Pragmas */ |
160 /******************/ |
171 /******************/ |