Package iota

Class IBooleanBinaryExpression

Direct Known Subclasses:
IComparisonExpression, IEqualOp, ILogicalAndOp, ILogicalOrOp, INotEqualOp

abstract class IBooleanBinaryExpression extends IBinaryExpression
This abstract base class is the AST node for binary expressions that return booleans.
  • Constructor Details

    • IBooleanBinaryExpression

      protected IBooleanBinaryExpression(int line, String operator, IExpression lhs, IExpression rhs)
      Constructs an AST node for a boolean binary expression.
      Parameters:
      line - line in which the boolean binary expression occurs in the source file.
      operator - the boolean binary operator.
      lhs - lhs operand.
      rhs - rhs operand.
  • Method Details

    • codegen

      public void codegen(CLEmitter output)
      Performs code generation for this AST.
      Specified by:
      codegen in class IAST
      Parameters:
      output - the code emitter.