-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSampleStringTemplateGroup.stg
More file actions
82 lines (57 loc) · 982 Bytes
/
Copy pathSampleStringTemplateGroup.stg
File metadata and controls
82 lines (57 loc) · 982 Bytes
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
group Java : asdf implements 23, 55;
parentClassMap ::= [
"root":"Object",
default : key
]
asdf(asdf={4235 asdf asdf asdf asdf "asdf$asd$"}, basdf="asdf")::=<<
"$asdf$ asdf dd"
"asdf"
$asdf;bb="55"$
$restasdf; separator="\n"$
$asdf; separator={asdf}$
$asdf:args()$
$separator.x.y$
asdf
"asdfasdf"
hello "said" the cat
// HI
$rest$
$asd$
$if(x)$
$elseif$
$endif$
rest
$! !$
public class X {
default
}
>>
$!!$
message()::=<<
<section>
$innerClasses:{inner | $message()$}; separator="\n"$
</section>
>>
parentClassMap ::= [
"root":"Object",
default : key
]
packageDeclaration(package)::=<<
asdf
>>
constants ::= [
"PI":"math.pi",
"-PI":"-math.pi",
"2PI":"(2.0 * math.pi)",
"-2PI":"-(2.0 * math.pi)",
"PI/2":"(math.pi / 2.0)",
"-PI/2":"-(math.pi / 2.0)",
default : key
]
packageDeclaration(package, package2="hello", package3=asdfasdf)::=<<
$!asdfasdf!$
package $package$;
package <package>;
>>
package()::=<<
>>