SIMPLE VARIABLE,COMPOUND,STEM VARIABLE
ALL VARIABLES CAN INDICATE BY '.' CHARACTER
SIMPLE VARIABLE: STRING WITHOUT '.'
STEM VARIABLE: IT CONTAIN ONE AND ONLY ON '.' AT THE END OF THE STRING
COMPOUND VARIABLES: OTHERS
EXAMPLE
SV: A,ABC,A1,B3....
STEM VARABLE: LINE.,PROC.,.....
COMPOUND VARIABLE: A.B.C,B.C,....
VARIABLE ASSIGNMENT FORMAT:
VARIABLE = VALUE
YOU CAN USE VARIABLE WITHOUT DEFINITION,JUST USE IT ,IT CAN TRANSPARENTS USE IT IN NEED.
THE KEYWORD DROP CAN REVOKE A ASSIGNMENT ,THE VARIABLE VALUE IS ITS LITERAL STRING IT UPPER CASE
- /* REXX */
- FIRSTR='ABC'
- A.B.C='HELLO WORLD'
- A.='CHANGE THE WORLD'
- SAY FIRSTR;
- SYA A.
- SAY A.B.C
- SAY A.B
- DROP FIRSTR;
- SAY FIRSTR;
- RETURN 0
THE OUTPUT IS :
ABC
CHANGE THE WORLD
HELLO WORLD
CHANGE WORLD
FIRSTR
阅读(1806) | 评论(0) | 转发(0) |