Language and Conventions Overview


数据类型

在GRIP语言有三种数据类型:

变量名称为这些数据类型,无论哪种类型,不能超过32个字符。变量名的第一个字符必须是字母。前六个字符必须是唯一的。只有这些前六个字符列在编译器列表末尾。下划线是有效的字符变量。此外,多达三个维度的Fortran状阵列可以被定义为数值和对象的数据类型。字符串可以长达两维。最重要的话,可以使用作为变量,但如果被定义为一个变量,它不能用作在同一程序的主要字。是主要的词是批量处理无效,也无效的变量。

 

下面显示的变量,以及他们是否编译的例子:

举例变量名称

将它编译?

Obj_Counter

Yes, but appears as OBJ_CO at the end of the compiler listing.

Entity_Counter

No. ENTITY is a reserved word that appears in the program.

This_is_a_long_name_that_won't_compile

No. More than 32 characters.

1

Yes.


Copyright ©2015 胡君NX二次开发官网(www.UGapi.com) QQ:85585969 All Rights Reserved.