示例#1
0
 private void WriteTokenIfReq(Ast.LogicalExpression expression, Token token)
 {
     if (expression.IsChild)
     {
         WriteToken(token);
     }
 }
示例#2
0
        public override Ast.Expression VisitLogicalExpression(Ast.LogicalExpression expression)
        {
            WriteTokenIfReq(expression, Token.LeftParenthesis);

            this.Visit(expression.Left);

            WriteLogicalOperator(expression.Operator);

            this.Visit(expression.Right);

            WriteTokenIfReq(expression, Token.RightParentThesis);

            return(expression);
        }
示例#3
0
 public virtual Ast.Expression VisitLogicalExpression(Ast.LogicalExpression expression)
 {
     this.Visit(expression.Left);
     this.Visit(expression.Right);
     return(expression);
 }