コード例 #1
0
        private EvaluatorState EvaluateUnaryExpression(UnaryExpression unaryExpression)
        {
            var @operator = unaryExpression.Operator;
            var lhs       = Visit(unaryExpression.Left);

            var result = EvalUnaryAsNumber(@operator, lhs);

            if (context.IsExplain)
            {
                PrintAsBitSet((int)long.Parse(lhs.Value));
            }

            return(new EvaluatorState()
            {
                IsSigned = true, Type = lhs.Type, Value = result.ToString()
            });
        }
コード例 #2
0
 private void EvaluateUnaryExpression(UnaryExpression unaryExpression)
 {
     Visit(unaryExpression.Left);
 }