mirror of
https://github.com/sigmasternchen/libargo
synced 2025-03-15 05:08:54 +00:00
changed to left recursion so that the marshalled json uses the same member order as the struct
This commit is contained in:
parent
a21ec9553f
commit
7c433f61b5
1 changed files with 6 additions and 6 deletions
|
@ -63,10 +63,10 @@ declars: /* empty */
|
|||
{
|
||||
$$ = newDeclarsInfo();
|
||||
}
|
||||
| declar SEMICOLON declars
|
||||
| declars declar SEMICOLON
|
||||
{
|
||||
$$ = $3;
|
||||
addStruct($3, $1);
|
||||
$$ = $1;
|
||||
addStruct($$, $2);
|
||||
}
|
||||
;
|
||||
|
||||
|
@ -104,10 +104,10 @@ structmembers: /* empty */
|
|||
{
|
||||
$$ = newStructInfo();
|
||||
}
|
||||
| structmember SEMICOLON structmembers
|
||||
| structmembers structmember SEMICOLON
|
||||
{
|
||||
$$ = $3;
|
||||
addMember($$, $1);
|
||||
$$ = $1;
|
||||
addMember($$, $2);
|
||||
}
|
||||
;
|
||||
|
||||
|
|
Loading…
Reference in a new issue