File: concrete-syntax/core/expression/unit.rb

Overview
Module Structure
Class Hierarchy
Code

Overview

Module Structure

  module: <Toplevel Module>
  module: Umu#6
  module: ConcreteSyntax#8
  module: Core#10
  module: Expression#12
has properties
function: make_unit / 1 #30
  class: Unit#14
inherits from
  Abstract ( Umu::ConcreteSyntax::Core::Expression )
has properties
method: to_s #15
method: __desugar__ / 2 #22

Code

   1  # coding: utf-8
   2  # frozen_string_literal: true
   3 
   4 
   5 
   6  module Umu
   7 
   8  module ConcreteSyntax
   9 
  10  module Core
  11 
  12  module Expression
  13 
  14  class Unit < Expression::Abstract
  15      def to_s
  16          '()'
  17      end
  18 
  19 
  20  private
  21 
  22      def __desugar__(_env, _event)
  23          ASCE.make_unit self.loc
  24      end
  25  end
  26 
  27 
  28  module_function
  29 
  30      def make_unit(loc)
  31          ASSERT.kind_of loc, LOC::Entry
  32 
  33          Unit.new(loc).freeze
  34      end
  35 
  36  end # Umu::ConcreteSyntax::Core::Expression
  37 
  38  end # Umu::ConcreteSyntax::Core
  39 
  40  end # Umu::ConcreteSyntax
  41 
  42  end # Umu