Line |
Branch |
Exec |
Source |
1 |
|
|
#include "codegen/cpp/cpp_gen.h" |
2 |
|
|
#include "ast/magic.h" |
3 |
|
|
#include "builtin/operators.h" |
4 |
|
|
#include "utilities/guard.h" |
5 |
|
|
#include "utilities/strings.h" |
6 |
|
|
|
7 |
|
|
namespace lython { |
8 |
|
|
|
9 |
|
|
using StmtRet = CPPGen::StmtRet; |
10 |
|
|
using ExprRet = CPPGen::ExprRet; |
11 |
|
|
using ModRet = CPPGen::ModRet; |
12 |
|
|
using PatRet = CPPGen::PatRet; |
13 |
|
|
|
14 |
|
|
ExprRet CPPGen::boolop(BoolOp_t* n, int depth) { return ExprRet(); } |
15 |
|
|
ExprRet CPPGen::namedexpr(NamedExpr_t* n, int depth) { return ExprRet(); } |
16 |
|
|
ExprRet CPPGen::compare(Compare_t* n, int depth) { return ExprRet(); } |
17 |
|
|
ExprRet CPPGen::binop(BinOp_t* n, int depth) { return ExprRet(); } |
18 |
|
|
ExprRet CPPGen::unaryop(UnaryOp_t* n, int depth) { return ExprRet(); } |
19 |
|
|
ExprRet CPPGen::lambda(Lambda_t* n, int depth) { return ExprRet(); } |
20 |
|
|
ExprRet CPPGen::ifexp(IfExp_t* n, int depth) { return ExprRet(); } |
21 |
|
|
ExprRet CPPGen::dictexpr(DictExpr_t* n, int depth) { return ExprRet(); } |
22 |
|
|
ExprRet CPPGen::setexpr(SetExpr_t* n, int depth) { return ExprRet(); } |
23 |
|
|
ExprRet CPPGen::listcomp(ListComp_t* n, int depth) { return ExprRet(); } |
24 |
|
|
ExprRet CPPGen::generateexpr(GeneratorExp_t* n, int depth) { return ExprRet(); } |
25 |
|
|
ExprRet CPPGen::setcomp(SetComp_t* n, int depth) { return ExprRet(); } |
26 |
|
|
ExprRet CPPGen::dictcomp(DictComp_t* n, int depth) { return ExprRet(); } |
27 |
|
|
ExprRet CPPGen::await(Await_t* n, int depth) { return ExprRet(); } |
28 |
|
|
ExprRet CPPGen::yield(Yield_t* n, int depth) { return ExprRet(); } |
29 |
|
|
ExprRet CPPGen::yieldfrom(YieldFrom_t* n, int depth) { return ExprRet(); } |
30 |
|
|
ExprRet CPPGen::call(Call_t* n, int depth) { return ExprRet(); } |
31 |
|
|
ExprRet CPPGen::joinedstr(JoinedStr_t* n, int depth) { return ExprRet(); } |
32 |
|
|
ExprRet CPPGen::formattedvalue(FormattedValue_t* n, int depth) { return ExprRet(); } |
33 |
|
|
ExprRet CPPGen::constant(Constant_t* n, int depth) { return ExprRet(); } |
34 |
|
|
ExprRet CPPGen::attribute(Attribute_t* n, int depth) { return ExprRet(); } |
35 |
|
|
ExprRet CPPGen::subscript(Subscript_t* n, int depth) { return ExprRet(); } |
36 |
|
|
ExprRet CPPGen::starred(Starred_t* n, int depth) { return ExprRet(); } |
37 |
|
|
ExprRet CPPGen::name(Name_t* n, int depth) { return ExprRet(); } |
38 |
|
|
ExprRet CPPGen::listexpr(ListExpr_t* n, int depth) { return ExprRet(); } |
39 |
|
|
ExprRet CPPGen::tupleexpr(TupleExpr_t* n, int depth) { return ExprRet(); } |
40 |
|
|
ExprRet CPPGen::slice(Slice_t* n, int depth) { return ExprRet(); } |
41 |
|
|
ExprRet CPPGen::dicttype(DictType_t* n, int depth) { return ExprRet(); } |
42 |
|
|
ExprRet CPPGen::arraytype(ArrayType_t* n, int depth) { return ExprRet(); } |
43 |
|
|
ExprRet CPPGen::arrow(Arrow_t* n, int depth) { return ExprRet(); } |
44 |
|
|
ExprRet CPPGen::builtintype(BuiltinType_t* n, int depth) { return ExprRet(); } |
45 |
|
|
ExprRet CPPGen::tupletype(TupleType_t* n, int depth) { return ExprRet(); } |
46 |
|
|
ExprRet CPPGen::settype(SetType_t* n, int depth) { return ExprRet(); } |
47 |
|
|
ExprRet CPPGen::classtype(ClassType_t* n, int depth) { return ExprRet(); } |
48 |
|
|
ExprRet CPPGen::comment(Comment_t* n, int depth) { return ExprRet(); } |
49 |
|
|
|
50 |
|
|
StmtRet CPPGen::functiondef(FunctionDef_t* n, int depth) { return StmtRet(); } |
51 |
|
|
StmtRet CPPGen::classdef(ClassDef_t* n, int depth) { return StmtRet(); } |
52 |
|
|
StmtRet CPPGen::invalidstmt(InvalidStatement_t* n, int depth) { return StmtRet(); } |
53 |
|
|
StmtRet CPPGen::returnstmt(Return_t* n, int depth) { return StmtRet(); } |
54 |
|
|
StmtRet CPPGen::deletestmt(Delete_t* n, int depth) { return StmtRet(); } |
55 |
|
|
StmtRet CPPGen::assign(Assign_t* n, int depth) { return StmtRet(); } |
56 |
|
|
StmtRet CPPGen::augassign(AugAssign_t* n, int depth) { return StmtRet(); } |
57 |
|
|
StmtRet CPPGen::annassign(AnnAssign_t* n, int depth) { return StmtRet(); } |
58 |
|
|
StmtRet CPPGen::forstmt(For_t* n, int depth) { return StmtRet(); } |
59 |
|
|
StmtRet CPPGen::whilestmt(While_t* n, int depth) { return StmtRet(); } |
60 |
|
|
StmtRet CPPGen::ifstmt(If_t* n, int depth) { return StmtRet(); } |
61 |
|
|
StmtRet CPPGen::with(With_t* n, int depth) { return StmtRet(); } |
62 |
|
|
StmtRet CPPGen::raise(Raise_t* n, int depth) { return StmtRet(); } |
63 |
|
|
StmtRet CPPGen::trystmt(Try_t* n, int depth) { return StmtRet(); } |
64 |
|
|
StmtRet CPPGen::assertstmt(Assert_t* n, int depth) { return StmtRet(); } |
65 |
|
|
StmtRet CPPGen::global(Global_t* n, int depth) { return StmtRet(); } |
66 |
|
|
StmtRet CPPGen::nonlocal(Nonlocal_t* n, int depth) { return StmtRet(); } |
67 |
|
|
StmtRet CPPGen::exprstmt(Expr_t* n, int depth) { return StmtRet(); } |
68 |
|
|
StmtRet CPPGen::pass(Pass_t* n, int depth) { return StmtRet(); } |
69 |
|
|
StmtRet CPPGen::breakstmt(Break_t* n, int depth) { return StmtRet(); } |
70 |
|
|
StmtRet CPPGen::continuestmt(Continue_t* n, int depth) { return StmtRet(); } |
71 |
|
|
StmtRet CPPGen::match(Match_t* n, int depth) { return StmtRet(); } |
72 |
|
|
StmtRet CPPGen::inlinestmt(Inline_t* n, int depth) { return StmtRet(); } |
73 |
|
|
StmtRet CPPGen::import(Import_t* n, int depth) { return StmtRet(); } |
74 |
|
|
StmtRet CPPGen::importfrom(ImportFrom_t* n, int depth) { return StmtRet(); } |
75 |
|
|
|
76 |
|
|
PatRet CPPGen::matchvalue(MatchValue_t* n, int depth) { return PatRet(); } |
77 |
|
|
PatRet CPPGen::matchsingleton(MatchSingleton_t* n, int depth) { return PatRet(); } |
78 |
|
|
PatRet CPPGen::matchsequence(MatchSequence_t* n, int depth) { return PatRet(); } |
79 |
|
|
PatRet CPPGen::matchmapping(MatchMapping_t* n, int depth) { return PatRet(); } |
80 |
|
|
PatRet CPPGen::matchclass(MatchClass_t* n, int depth) { return PatRet(); } |
81 |
|
|
PatRet CPPGen::matchstar(MatchStar_t* n, int depth) { return PatRet(); } |
82 |
|
|
PatRet CPPGen::matchas(MatchAs_t* n, int depth) { return PatRet(); } |
83 |
|
|
PatRet CPPGen::matchor(MatchOr_t* n, int depth) { return PatRet(); } |
84 |
|
|
|
85 |
|
|
ModRet CPPGen::module(Module_t* stmt, int depth) { return ModRet(); }; |
86 |
|
|
ModRet CPPGen::interactive(Interactive_t* n, int depth) { return ModRet(); } |
87 |
|
|
ModRet CPPGen::functiontype(FunctionType_t* n, int depth) { return ModRet(); } |
88 |
|
|
ModRet CPPGen::expression(Expression_t* n, int depth) { return ModRet(); } |
89 |
|
|
|
90 |
|
|
} // namespace lython |
91 |
|
|
|