You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's the advantage of the pipeline rules?
Why not use the rules like this?
For example, BooleanExpression:
oC_BoolExpression:
oC_BooleanLiteral
| oC_StringListNullOperatorExpression
| oC_ComparisonExpression
| (ops=NOT SP?) oC_BoolExpression
| '(' SP? oC_BoolExpression SP? ')'
| oC_BoolExpression SP ops=AND SP oC_BoolExpression
| oC_BoolExpression SP ops=OR SP oC_BoolExpression
| oC_BoolExpression SP ops=XOR SP oC_BoolExpression
;
I think the AST generated by this way may be more graceful.
Looking forward to your comments or opinion.
The text was updated successfully, but these errors were encountered:
Hi,
I read the Cypher.g4 file and have many questions.
One is about the Expression.
It seems that the oC_Expression rule use a pipeline:
What's the advantage of the pipeline rules?
Why not use the rules like this?
For example, BooleanExpression:
The text was updated successfully, but these errors were encountered: