File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,7 @@ public class Main {
4
4
5
5
public static void Main() {
6
6
System.out.println("something in a string");
7
- System.out.println("something else in a string");
8
- if (true){System.out.println("something in if is a string");}
9
- for (i=0;i<2;i++){System.out.println("something in for is a string");}
7
+
10
8
}
11
9
12
10
}
Original file line number Diff line number Diff line change 88
88
to-kast:
89
89
x -> $[# [x](.KList)]
90
90
where <is-int> x
91
+
92
+ to-kast:
93
+ a#(b) -> $[[<to-kast-userlist> a#(b)]]
94
+ where (!a => "SwitchLabelList")
91
95
92
96
to-kast:
93
97
a#(b) -> $['[a](
@@ -118,6 +122,19 @@ rules
118
122
119
123
120
124
125
+ to-kast-userlist:
126
+ a#([hd | tl]) -> $['[a]([<to-kast> hd],,
127
+ [[<to-kast-userlist> a#(tl)]])]
128
+
129
+
130
+
131
+
132
+ to-kast-userlist:
133
+ a#([]) -> $[.[a]]
134
+
135
+
136
+
137
+
121
138
122
139
// lang -jar strategoxt.jar -i starter.str -o Ocl -la stratego-sglr --lib -I .. -p oclParser.lib --clean
123
140
// lang -jar strategoxt.jar -i starter.str -o langParser -la stratego-sglr -I .. -m safecallcmd1 -p ro.uaic.info.fmse.parser
You can’t perform that action at this time.
0 commit comments