/
deyaccify2doc.xbgf
68 lines (65 loc) · 1.95 KB
/
deyaccify2doc.xbgf
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
<xbgf:sequence
xmlns:bgf="http://planet-sl.org/bgf"
xmlns:xbgf="http://planet-sl.org/xbgf">
<!--
- Fail: SwitchBlockStatementGroups.
- [], *(n(SwitchBlockStatementGroup))
vs.
- [], ;([n(SwitchBlockStatementGroup), ,([n(SwitchBlockStatementGroups), n(SwitchBlockStatementGroup)])])
-->
<xbgf:deyaccify>SwitchBlockStatementGroups</xbgf:deyaccify>
<xbgf:extract>
<bgf:production>
<nonterminal>SwitchBlockStatementGroupsOptPlus</nonterminal>
<bgf:expression>
<optional>
<bgf:expression>
<nonterminal>SwitchBlockStatementGroups</nonterminal>
</bgf:expression>
</optional>
</bgf:expression>
</bgf:production>
</xbgf:extract>
<xbgf:inline>SwitchBlockStatementGroups</xbgf:inline>
<xbgf:rename>
<nonterminal>
<from>SwitchBlockStatementGroupsOptPlus</from>
<to>SwitchBlockStatementGroups</to>
</nonterminal>
</xbgf:rename>
<!-- replace by massage later -->
<xbgf:massage>
<bgf:expression>
<optional>
<bgf:expression>
<plus>
<bgf:expression>
<nonterminal>SwitchBlockStatementGroup</nonterminal>
</bgf:expression>
</plus>
</bgf:expression>
</optional>
</bgf:expression>
<bgf:expression>
<star>
<bgf:expression>
<nonterminal>SwitchBlockStatementGroup</nonterminal>
</bgf:expression>
</star>
</bgf:expression>
</xbgf:massage>
<!--
- Fail: Catches.
- [], ,([n(CatchClause), *(n(CatchClause))])
vs.
- [], ;([n(CatchClause), ,([n(Catches), n(CatchClause)])])
-->
<xbgf:deyaccify>Catches</xbgf:deyaccify>
<!--
- Fail: BlockStatements.
- [], *(n(BlockStatement))
vs.
- [], ;([n(BlockStatement), ,([n(BlockStatements), n(BlockStatement)])])
-->
<xbgf:deyaccify>BlockStatements</xbgf:deyaccify>
</xbgf:sequence>