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.



63
64
65
66
# File 'lib/crokus/ast.rb', line 63

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

Instance Attribute Details

#nameObject

Returns the value of attribute name.



62
63
64
# File 'lib/crokus/ast.rb', line 62

def name
  @name
end

#precisionsObject

Returns the value of attribute precisions.



62
63
64
# File 'lib/crokus/ast.rb', line 62

def precisions
  @precisions
end