File: abstract-syntax/core/expression/binary/abstract.rb

Overview
Module Structure
Class Hierarchy
Code

Overview

Module Structure

  module: <Toplevel Module>
  module: Umu#6
  module: AbstractSyntax#8
  module: Core#10
  module: Expression#12
  module: Binary#14
  class: Abstract#16
inherits from
  Abstract ( Umu::AbstractSyntax::Core::Expression )
has properties
attribute: lhs_expr [R] #17
attribute: rhs [R] #17
method: initialize / 3 #20

Code

   1  # coding: utf-8
   2  # frozen_string_literal: true
   3 
   4 
   5 
   6  module Umu
   7 
   8  module AbstractSyntax
   9 
  10  module Core
  11 
  12  module Expression
  13 
  14  module Binary
  15 
  16  class Abstract < Expression::Abstract
  17      attr_reader :lhs_expr, :rhs
  18 
  19 
  20      def initialize(loc, lhs_expr, rhs)
  21          ASSERT.kind_of lhs_expr,    ASCE::Abstract
  22          ASSERT.kind_of rhs,         ::Object
  23 
  24          super(loc)
  25 
  26          @lhs_expr   = lhs_expr
  27          @rhs        = rhs
  28      end
  29  end
  30 
  31  end # Umu::AbstractSyntax::Core::Expression::Binary
  32 
  33  end # Umu::AbstractSyntax::Core::Expression
  34 
  35  end # Umu::AbstractSyntax::Core
  36 
  37  end # Umu::AbstractSyntax
  38 
  39  end # Umu