-
-
Notifications
You must be signed in to change notification settings - Fork 1k
/
cpp.json
61 lines (61 loc) · 2.29 KB
/
cpp.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"Program": "#include <shogun/base/init.h>\n#include <shogun/base/some.h>\n${dependencies}\n\nusing namespace shogun;\n\nint main(int, char*[])\n{\ninit_shogun_with_defaults();\n\n$program$testing\nexit_shogun();\nreturn 0;\n}\n",
"Dependencies": {
"AllClassDependencies": "$classlist",
"AllDependencies": "$allClassDependencies",
"DependencyListSeparator": "\n",
"DependencyListElementClass": "#include <$include>"
},
"Statement": "$statement;\n",
"Comment": "//$comment\n",
"Init": {
"Construct": "auto $name = some<C$type>($arguments)",
"Copy": "auto $name = $expr"
},
"Assign": "$name = $expr",
"Type": {
"RealFeatures": "DenseFeatures<float64_t>",
"Default": "$type",
"bool": "bool",
"string": "char*",
"real": "float64_t",
"BoolVector": "SGVector<bool>",
"CharVector": "SGVector<char>",
"ByteVector": "SGVector<uint8_t>",
"WordVector": "SGVector<uint16_t>",
"ShortVector": "SGVector<int16_t>",
"IntVector": "SGVector<int32_t>",
"LongIntVector": "SGVector<int64_t>",
"ULongIntVector": "SGVector<uint64_t>",
"ShortRealVector": "SGVector<float32_t>",
"RealVector": "SGVector<float64_t>",
"LongRealVector": "SGVector<floatmax_t>",
"ComplexVector": "SGVector<complex128_t>",
"BoolMatrix": "SGMatrix<bool>",
"CharMatrix": "SGMatrix<char>",
"ByteMatrix": "SGMatrix<uint8_t>",
"WordMatrix": "SGMatrix<uint16_t>",
"ShortMatrix": "SGMatrix<int16_t>",
"IntMatrix": "SGMatrix<int32_t>",
"LongIntMatrix": "SGMatrix<int64_t>",
"ULongIntMatrix": "SGMatrix<uint64_t>",
"ShortRealMatrix": "SGMatrix<float32_t>",
"RealMatrix": "SGMatrix<float64_t>",
"LongRealMatrix": "SGMatrix<floatmax_t>",
"ComplexMatrix": "SGMatrix<complex128_t>"
},
"Expr": {
"StringLiteral": "\"$literal\"",
"BoolLiteral": {
"True": "true",
"False": "false"
},
"NumberLiteral": "$number",
"MethodCall": "$object->$method($arguments)",
"Identifier": "$identifier",
"Enum":"$value"
},
"Print": "SG_SPRINT($expr)",
"OutputDirectoryName": "cpp",
"FileExtension": ".cpp"
}