Built-in Data Type'larBuilt-in Data Types

This page is part of an incremental translation project. Body text not yet translated to Turkish falls back to English even in TR mode.

Diğer programlama dilleri gibi TROIA da built-in data type'lara sahiptir ve bu type'ların her birinin kendine özgü bazı özellikleri vardır. Bu bölüm tüm primitive ve complex data type'ları tanıtmayı amaçlar. Complex data type'larla ilgili detaylar ilgili bölümlerde ele alınacaktır.Like other programming languages, TROIA has built-in data types and all these types have some specific features. This section aims to introduce all primitive and complex data types. Details about complex data types will be discussed in related sections.

Built-in Data Type'larBuilt-in Data Types

Built-in data type'lar aşağıda listelenmiştir:Built-in data types are listed below:

INTEGER        (Ex: 5, default value is: 0)
LONG           (Ex: 12312312, default value:0)
DECIMAL        (Ex: 1.32 , all floating point numbers, default value:0.0)
BOOLEAN        (0 or 1, default value:0)

DATETIME       (Ex: 29.10.1923 16:30:30, default value:definition time)
DATE           (Ex: 23.04.1920, default value:definition date)
TIME           (Ex: 21:30)
TIMES          (Ex: 21:30:13)

STRING         (Ex: 'Hello World', default value is empty string)
STRINGBUILDER  (default value is empty string)

TABLE
VECTOR

BOOLEAN data type 5.01 ve sonraki sürümlerde desteklenir, bu yüzden genellikle BOOLEAN yerine INTEGER type 1 veya 0 olarak kullanılır.BOOLEAN data type is supported on 5.01 and following releases, so usually INTEGER type is used instead of BOOLEAN type as 1 or 0.

TROIA byte, char, short, float gibi low level type'ları desteklemez.TROIA does not support low level types like byte, char, short, float etc.

StringBuilder & StringStringBuilder & String

STRINGBUILDER, yalnızca string oluşturma (string building) işlemi için tasarlanmış, string benzeri bir symbol type'tır.STRINGBUILDER is a string like symbol type which is designed for only string building operation.

STRING yerine STRINGBUILDER değişkeni kullanmak, string concatenation performansını ciddi şekilde artırır. String concatenation'da daha yüksek performans elde etmek için '+' operatörü yerine APPENDSTRING komutunu kullanmalısınız.Using a STRINGBUILDER variable instead of STRING increases string concatenation performance dramatically. To get higher performance on string concatenation, you must use APPENDSTRING command instead of ‘+’ operator.

STRINGBUILDER ile STRING arasında concatenation dışında ayırt edici bir özellik olmasa da, string concatenation hariç normal string işlemlerinde STRINGBUILDER type kullanmak önerilmez.Although there is not any other distinctive feature between STRINGBUILDER and STRING, it is not recommended to use STRINGBUILDER type instead of STRING on regular string opreations except string concatenation.

Hem STRING hem STRINGBUILDER type'larının hard-coded bir maksimum uzunluğu yoktur.Both STRING and STRINGBUILDER types don’t have hard-coded maximum length.

Hardcode string'leri sınırlamak için tek tırnak (') kullanılır.Single quote (’) is used to limit hardcode strings.

TableTable

TABLE, TROIA programlama dilinin en önemli built-in type'ıdır. TABLE type, veritabanı tablolarına benzer, memory içinde iki boyutlu bir yapıyı temsil eder. TABLE Type'ı, ilgili komut ve fonksiyonları ilerleyen bölümlerde detaylıca ele alacağız.TABLE is the most important build in type of TROIA programming language. TABLE type represents a two dimensional in memory structure similar to database tables. We will discuss TABLE Type, related commands and functions in next sections, in detail.

VectorVector

VECTOR, farklı type'larda değişkenleri saklayabilen bir tür tek boyutlu array type'ıdır. VECTOR Type'ı, ilgili komut ve fonksiyonları ilerleyen bölümlerde detaylıca ele alacağız.VECTOR is a kind of one dimensional array type that is able to store different types of variables. VECTOR Type, related commands and functions will be discussed in next sections, in detail.

Keyword'ler ve Identifier'larKeywords and Identifiers

Önceki bölümlerde belirtildiği gibi TROIA command tabanlı bir dildir. Bu yapısının bir sonucu olarak TROIA, sıradan bir programlama diline kıyasla daha fazla reserved word'e sahiptir. Temel olarak TROIA keyword'leri command, function ve önceden tanımlı system variable isimlerinden oluşur.As mentioned in previous sections TROIA is a command based language. As a result of it’s structure TROIA has more reserved words compared to an ordinary programming language. Basically, TROIA keywords are consisted from command, function and predefined system variable names.

Bu kelimeleri variable ve function ismi olarak kullanmak yasaktır. TROIA keyword'lerini variable/function ismi olarak kullanmaktan kaçınmak için programcılar, TROIA Editor'de ekstra renkle gösterilen kelimeleri kullanmamalıdır.It is not allowed to use these words as variable and functions name. To avoid using TROIA keywords as variable/function name programmers must not use the word that has extra color in TROIA Editor.

En dikkat çekici/sık kullanılan TROIA identifier'larından bazıları aşağıda listelenmiştir.Some of the most subtle/used TROIA identifiers are listed below.

GET            IF             MARKERSET      RETURNVALUE    COPY
EXECUTE        MESSAGE        SELECT         MARKERPOINT    RETURN
BREAK          DECIMAL        INSERT         MOVE           SELECTED
BREAKPOINT     DELETE         INSERTED       NOTFOUND       SET
CALL           DELETED        ZOOMID         NOTSELECTED    SQL
CLASS          DEQUE          JAVA           NULL           ZOOM
CLEAR          ENQUE          VOID           PAGENUM        WHILE
CONFIRM        ENTITYID       LOOP           RETURN         SWITCH
TRUE           TIMES          FALSE          UPDATED        ZOOMFYI
PUT            BEGINTRAN      COMMITTRAN     ROLLBACKTRAN   BOOLEAN
STRINGBUILDER