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、開發環境概覽: