mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 07:20:55 +01:00
ircd::json: Reorder alternative operands.
This commit is contained in:
parent
092cb5d804
commit
d91b9d0aee
1 changed files with 5 additions and 5 deletions
10
ircd/json.cc
10
ircd/json.cc
|
@ -153,7 +153,7 @@ struct ircd::json::input
|
||||||
// primary recursive rule
|
// primary recursive rule
|
||||||
const rule<unused_type(uint)> value
|
const rule<unused_type(uint)> value
|
||||||
{
|
{
|
||||||
lit_false | lit_null | lit_true | string | number | object(depth + 1) | array(depth + 1)
|
string | number | lit_true | lit_false | lit_null | object(depth + 1) | array(depth + 1)
|
||||||
,"value"
|
,"value"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -204,11 +204,11 @@ struct ircd::json::input
|
||||||
:input::base_type{rule<>{}} // required by spirit
|
:input::base_type{rule<>{}} // required by spirit
|
||||||
{
|
{
|
||||||
// synthesized repropagation of recursive rules
|
// synthesized repropagation of recursive rules
|
||||||
value %= lit_false
|
value %= string
|
||||||
| lit_null
|
|
||||||
| lit_true
|
|
||||||
| string
|
|
||||||
| number
|
| number
|
||||||
|
| lit_true
|
||||||
|
| lit_false
|
||||||
|
| lit_null
|
||||||
| object(depth + 1)
|
| object(depth + 1)
|
||||||
| array(depth + 1)
|
| array(depth + 1)
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in a new issue