1、单行注释//
多行注释 /**/
2、数据类型:(不区分大小写)
(1)基本数据类型:
boolean
boolean b;
boolean b1,b2;
integer
int i1,i2;
int i3 = 100;
int i4[];
real
real r1,r2;
real r3 = 3.1415;
date
date d1,d2;
//A date variable, d3, is initialized to the 21st of October 1998
date d3 = 21\11\1998;
timeofday
string
str a=”Hello”,b=”World”;
print a+” “+b;
enum
(2)复合数据类型:
array(s)
real r[100];
// A dynamic array of dates, with only 10 elements in memory
date d[,10];
// A fixed length array of NoYes, with 100 elements and 10 in memory
NoYes e[100,10];
Container(s)
container c = [7,3.14, ”Hello”];
int i;
i = confind( c, “Hello”); //i has the value 3
classe(s)
Access a1; //An Access-object is declared but NOT initialized
Access a2, a3; //Two Access-objects are declared, but NOT initialized
Access a4 = new Access();
table(s)
(3)扩展数据类型(Extended data types):
where extendedtype is the name of the Extended Data Type in the Application Object Tree. Using the EBNF you can declare Extended Data Type variables like this (the examples use built-in extended data types):
// A UserGroupID (integer) variable is declared and initialized to 1.
UserGroupIDgroupID = 1;
// An Amount (real) variable is declared
Amount currency;
3、程序控制语句类似于c++,但是,变量的定义要放在开始使用之前,如:
do{
print b;
b++;
}while(b<10);
for(m=0;m<10;m++){//can not define int m=0 in this
print m;
}
4、开发环境概览: