mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-15 20:31:16 +08:00
Add ddlBracedArguments to expressions
This commit is contained in:
parent
c84f34d6f9
commit
6ae27a922e
@ -52,6 +52,7 @@ ddlBracedExpression = pp.Forward()
|
|||||||
ddlFunctionCall = pp.Forward()
|
ddlFunctionCall = pp.Forward()
|
||||||
ddlCastEnd = "::" + ddlTerm
|
ddlCastEnd = "::" + ddlTerm
|
||||||
ddlCast = ddlString + ddlCastEnd
|
ddlCast = ddlString + ddlCastEnd
|
||||||
|
ddlBracedArguments = pp.Forward()
|
||||||
ddlExpression = pp.OneOrMore(
|
ddlExpression = pp.OneOrMore(
|
||||||
ddlBracedExpression
|
ddlBracedExpression
|
||||||
| ddlFunctionCall
|
| ddlFunctionCall
|
||||||
@ -61,8 +62,10 @@ ddlExpression = pp.OneOrMore(
|
|||||||
| ddlString
|
| ddlString
|
||||||
| ddlTerm
|
| ddlTerm
|
||||||
| ddlNumber
|
| ddlNumber
|
||||||
|
| ddlBracedArguments
|
||||||
)
|
)
|
||||||
|
|
||||||
|
ddlBracedArguments << ddlLeft + pp.delimitedList(ddlExpression) + ddlRight
|
||||||
ddlBracedExpression << ddlLeft + ddlExpression + ddlRight
|
ddlBracedExpression << ddlLeft + ddlExpression + ddlRight
|
||||||
|
|
||||||
ddlArguments = pp.Suppress(pp.Group(pp.delimitedList(ddlExpression)))
|
ddlArguments = pp.Suppress(pp.Group(pp.delimitedList(ddlExpression)))
|
||||||
|
Loading…
Reference in New Issue
Block a user