public override void ExitLogicalOrExpression(CParser.LogicalOrExpressionContext context)
 {
     if (context.logicalOrExpression() != null)
     {
         // logicalOrExpression '||' logicalAndExpression
         SafeCall(context, CExpression.LogicalOrOperator);
     }
 }
Example #2
0
        protected ObjectDef EmitLogicalOrExpression(CParser.LogicalOrExpressionContext logicalOrExpression)
        {
            ObjectDef returnObjectDef = null;

            if (logicalOrExpression.logicalAndExpression() != null)
            {
                returnObjectDef = EmitLogicalAndExpression(logicalOrExpression.logicalAndExpression());
            }

            if (logicalOrExpression.logicalAndExpression() != null &&
                logicalOrExpression.logicalOrExpression() != null)
            {
                returnObjectDef = null; // TODO: Emit logical 'OR' expression
            }

            return(returnObjectDef);
        }