Skip to content

Commit 9d909e3

Browse files
committed
update schema
1 parent d5f5aa6 commit 9d909e3

File tree

2 files changed

+29
-15
lines changed

2 files changed

+29
-15
lines changed

mrdox.rnc

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,9 @@ grammar
5151
(
5252
BaseInfo |
5353
Attr |
54-
MemberTypeInfo |
5554
element friend { ID } |
5655
Javadoc? |
57-
Scope
56+
RecordScope
5857
) *
5958
)
6059

@@ -67,17 +66,6 @@ grammar
6766
ID
6867
}
6968

70-
MemberTypeInfo =
71-
element data
72-
{
73-
Name,
74-
attribute type { text },
75-
attribute value { text } ?,
76-
Access ?,
77-
ID ?,
78-
Attr *
79-
}
80-
8169
#---------------------------------------------
8270

8371
Function =
@@ -140,6 +128,23 @@ grammar
140128

141129
#---------------------------------------------
142130

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+
143148
Var =
144149
element variable
145150
{
@@ -220,6 +225,15 @@ grammar
220225
Enum |
221226
Var)*
222227

228+
RecordScope = (
229+
Namespace |
230+
Record |
231+
Function |
232+
Typedef |
233+
Enum |
234+
Field |
235+
Var)*
236+
223237
# JavaDoc not in a nested grammar , so we can convert it to a XSD
224238

225239
Javadoc = element doc {Brief ?, Node* }

source/-XML/XMLWriter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,9 +449,9 @@ writeField(
449449
{
450450
tags_.open(dataMemberTagName, {
451451
{ "name", I.Name },
452-
{ "default", I.Default, ! I.Default.empty() },
453452
{ access },
454-
{ I.id }
453+
{ I.id },
454+
{ "default", I.Default, ! I.Default.empty() }
455455
});
456456

457457
writeSymbol(I);

0 commit comments

Comments
 (0)