コード例 #1
0
 public override void ExitLogicalAndExpression(CParser.LogicalAndExpressionContext context)
 {
     if (context.logicalAndExpression() != null)
     {
         // logicalAndExpression '&&' inclusiveOrExpression
         SafeCall(context, CExpression.LogicalAndOperator);
     }
 }
コード例 #2
0
        protected ObjectDef EmitLogicalAndExpression(CParser.LogicalAndExpressionContext logicalAndExpression)
        {
            ObjectDef returnObjectDef = null;

            if (logicalAndExpression.inclusiveOrExpression() != null)
            {
                returnObjectDef = EmitInclusiveOrExpression(logicalAndExpression.inclusiveOrExpression());
            }

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

            return(returnObjectDef);
        }