Class: Crokus::Type

Inherits:
Ast
  • Object
show all
Defined in:
lib/crokus/ast.rb

Overview

.….… types .….……

Direct Known Subclasses

ArrayOf, CastedExpr, Casting, PointerTo, Struct

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Ast

#accept, #str

Constructor Details

#initialize(name) ⇒ Type

Returns a new instance of Type.



59
60
61
62
# File 'lib/crokus/ast.rb', line 59

def initialize name
  @precisions=[]
  @name=name
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



58
59
60
# File 'lib/crokus/ast.rb', line 58

def name
  @name
end

#precisionsObject

Returns the value of attribute precisions.



58
59
60
# File 'lib/crokus/ast.rb', line 58

def precisions
  @precisions
end