metron-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattf-horton <...@git.apache.org>
Subject [GitHub] metron pull request #606: METRON-980: Short circuit operations for Stellar
Date Wed, 07 Jun 2017 01:41:35 GMT
Github user mattf-horton commented on a diff in the pull request:

    https://github.com/apache/metron/pull/606#discussion_r119928654
  
    --- Diff: metron-platform/metron-common/src/main/antlr4/org/apache/metron/common/stellar/generated/Stellar.g4
---
    @@ -139,9 +139,21 @@ transformation_expr:
       | in_expr #InExpression
       ;
     
    +if_expr:
    +  logical_expr
    +  ;
    +
    +then_expr:
    +  transformation_expr
    +  ;
    +
    +else_expr:
    +  transformation_expr
    +  ;
    +
     conditional_expr :
    -  logical_expr QUESTION transformation_expr COLON transformation_expr #TernaryFuncWithoutIf
    -  | IF logical_expr THEN transformation_expr ELSE transformation_expr #TernaryFuncWithIf
    +  if_expr QUESTION then_expr COLON else_expr #TernaryFuncWithoutIf
    +  | IF if_expr THEN then_expr ELSE else_expr #TernaryFuncWithIf
    --- End diff --
    
    Good clarification.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message