| 1 | // cpp/translation_stubs.h
 | 
| 2 | 
 | 
| 3 | #ifndef CPP_TRANSLATION_STUBS_H
 | 
| 4 | #define CPP_TRANSLATION_STUBS_H
 | 
| 5 | 
 | 
| 6 | // Hm is this overload really necessary?
 | 
| 7 | // Declared in mycpp/comparators.h
 | 
| 8 | inline bool are_equal(id_kind_asdl::Kind left, id_kind_asdl::Kind right) {
 | 
| 9 |   return left == right;
 | 
| 10 | }
 | 
| 11 | 
 | 
| 12 | namespace vm {
 | 
| 13 | class _Executor;
 | 
| 14 | }
 | 
| 15 | 
 | 
| 16 | namespace word_eval {
 | 
| 17 | class AbstractWordEvaluator;
 | 
| 18 | }
 | 
| 19 | 
 | 
| 20 | #if 0
 | 
| 21 | namespace expr_eval {
 | 
| 22 | 
 | 
| 23 | class OilEvaluator {
 | 
| 24 |  public:
 | 
| 25 |   // TODO: Should return value_t
 | 
| 26 |   void* EvalExpr(syntax_asdl::expr_t* node) {
 | 
| 27 |     assert(0);
 | 
| 28 |   }
 | 
| 29 |   void CheckCircularDeps() {
 | 
| 30 |     assert(0);
 | 
| 31 |   }
 | 
| 32 |   vm::_Executor* shell_ex;
 | 
| 33 |   word_eval::AbstractWordEvaluator* word_ev;
 | 
| 34 | };
 | 
| 35 | }  // namespace expr_eval
 | 
| 36 | #endif
 | 
| 37 | 
 | 
| 38 | #endif  // CPP_TRANSLATION_STUBS_H
 |