File tree Expand file tree Collapse file tree 2 files changed +29
-15
lines changed Expand file tree Collapse file tree 2 files changed +29
-15
lines changed Original file line number Diff line number Diff line change @@ -51,10 +51,9 @@ grammar
51
51
(
52
52
BaseInfo |
53
53
Attr |
54
- MemberTypeInfo |
55
54
element friend { ID } |
56
55
Javadoc? |
57
- Scope
56
+ RecordScope
58
57
) *
59
58
)
60
59
@@ -67,17 +66,6 @@ grammar
67
66
ID
68
67
}
69
68
70
- MemberTypeInfo =
71
- element data
72
- {
73
- Name,
74
- attribute type { text },
75
- attribute value { text } ?,
76
- Access ?,
77
- ID ?,
78
- Attr *
79
- }
80
-
81
69
#---------------------------------------------
82
70
83
71
Function =
@@ -140,6 +128,23 @@ grammar
140
128
141
129
#---------------------------------------------
142
130
131
+ Field =
132
+ element data
133
+ {
134
+ Name,
135
+ Access?,
136
+ ID,
137
+ attribute default { text } ?,
138
+ (
139
+ Location &
140
+ Attr * &
141
+ element type { Name, ID ? } &
142
+ Javadoc ?
143
+ )
144
+ }
145
+
146
+ #---------------------------------------------
147
+
143
148
Var =
144
149
element variable
145
150
{
@@ -220,6 +225,15 @@ grammar
220
225
Enum |
221
226
Var)*
222
227
228
+ RecordScope = (
229
+ Namespace |
230
+ Record |
231
+ Function |
232
+ Typedef |
233
+ Enum |
234
+ Field |
235
+ Var)*
236
+
223
237
# JavaDoc not in a nested grammar , so we can convert it to a XSD
224
238
225
239
Javadoc = element doc {Brief ?, Node* }
Original file line number Diff line number Diff line change @@ -449,9 +449,9 @@ writeField(
449
449
{
450
450
tags_.open (dataMemberTagName, {
451
451
{ " name" , I.Name },
452
- { " default" , I.Default , ! I.Default .empty () },
453
452
{ access },
454
- { I.id }
453
+ { I.id },
454
+ { " default" , I.Default , ! I.Default .empty () }
455
455
});
456
456
457
457
writeSymbol (I);
You can’t perform that action at this time.
0 commit comments