-
-
Notifications
You must be signed in to change notification settings - Fork 1k
/
r.json
43 lines (43 loc) · 1.25 KB
/
r.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
{
"Program": "library(shogun)\n\n$program",
"Statement": "$statement\n",
"Comment": "#$comment\n",
"Init": {
"Construct": "$name <- $typeName($arguments)",
"Copy": "$name <- $expr"
},
"Assign": "$identifier <- $expr",
"Type": {
"Default": "$typeName"
},
"Expr": {
"StringLiteral": "\"$literal\"",
"CharLiteral": "'$literal'",
"BoolLiteral": {
"True": "TRUE",
"False": "FALSE"
},
"IntLiteral": "$number",
"RealLiteral": "$number",
"FloatLiteral": "$number",
"MethodCall": "$object$$$method($arguments)",
"StaticCall": "${typeName}_$method($arguments)",
"GlobalCall": "$method($arguments)",
"Identifier": "$identifier",
"Enum":"\"$value\""
},
"Element": {
"Access": {
"Vector": "$identifier$$get_element($indices)",
"Matrix": "$identifier$$get_element($indices)"
},
"Assign": {
"Vector": "$identifier$$set_element($expr, $indices)",
"Matrix": "$identifier$$set_element($expr, $indices)"
},
"ZeroIndexed": false
},
"Print": "print($expr)",
"OutputDirectoryName": "r",
"FileExtension": ".R"
}