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