0
0
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:
Leonhard Kipp 2022-06-13 20:03:20 +02:00 committed by Roland Bock
parent c84f34d6f9
commit 6ae27a922e

View File

@ -52,6 +52,7 @@ ddlBracedExpression = pp.Forward()
ddlFunctionCall = pp.Forward()
ddlCastEnd = "::" + ddlTerm
ddlCast = ddlString + ddlCastEnd
ddlBracedArguments = pp.Forward()
ddlExpression = pp.OneOrMore(
ddlBracedExpression
| ddlFunctionCall
@ -61,8 +62,10 @@ ddlExpression = pp.OneOrMore(
| ddlString
| ddlTerm
| ddlNumber
| ddlBracedArguments
)
ddlBracedArguments << ddlLeft + pp.delimitedList(ddlExpression) + ddlRight
ddlBracedExpression << ddlLeft + ddlExpression + ddlRight
ddlArguments = pp.Suppress(pp.Group(pp.delimitedList(ddlExpression)))