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 Unary
15
16 class Abstract < Expression::Abstract
17 attr_reader :obj
18
19
20 def initialize(loc, obj)
21 ASSERT.kind_of obj, ::Object
22
23 super(loc)
24
25 @obj = obj
26 end
27
28
29 def simple?
30 true
31 end
32 end
33
34 end # Umu::AbstractSyntax::Core::Expression::Unary
35
36 end # Umu::AbstractSyntax::Core::Expression
37
38 end # Umu::AbstractSyntax::Core
39
40 end # Umu::AbstractSyntax
41
42 end # Umu