diff options
Diffstat (limited to 'src/c.cpp')
-rw-r--r-- | src/c.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -137,6 +137,7 @@ struct CEngine : public Engine { CFunc compileFunction(CEnv& cenv, AFn* fn, const AType& argsT); CVal compileTup(CEnv& cenv, const AType* type, const vector<CVal>& fields); + CVal compileDot(CEnv& cenv, CVal tup, int32_t index); CVal compileLiteral(CEnv& cenv, AST* lit); CVal compilePrimitive(CEnv& cenv, APrimitive* prim); CVal compileIf(CEnv& cenv, AIf* aif); @@ -170,6 +171,12 @@ CEngine::compileTup(CEnv& cenv, const AType* type, const vector<CVal>& fields) } CVal +CEngine::compileDot(CEnv& cenv, CVal tup, int32_t index) +{ + return NULL; +} + +CVal CEngine::compileLiteral(CEnv& cenv, AST* lit) { return new Value(lit->str()); |