OILS / cpp / translation_stubs.h View on Github | oilshell.org

38 lines, 21 significant
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
8inline bool are_equal(id_kind_asdl::Kind left, id_kind_asdl::Kind right) {
9 return left == right;
10}
11
12namespace vm {
13class _Executor;
14}
15
16namespace word_eval {
17class AbstractWordEvaluator;
18}
19
20#if 0
21namespace expr_eval {
22
23class 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