|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21573/root/usr/share/doc/slang-devel-2.0.6/ |
Upload File : |
Variable Assignment:
x = --> =x
x += --> +=x
x -= --> -=x
x++ --> ++x
x-- --> --x
Note: The current version of slang does not distguish between the
post and pre-increment operators. A future version may make a
distinction and assignment statements may return a value.
Function Definition: define f (arg1, ..., argN) { statements }
--> ( [ arg1 arg2 ... argN ] =argN ... =arg1 rpn-statements ) f
Variable Declaration: variable x1, ... xN;
--> [ x1 ... xN ]
Structure Definition: struct {f1, ... fN}
--> "f1" ... "fN" N struct
Structure Typedef: typedef struct { f1, ... fN } Type_Name ;
--> __typedef f1 ... fN ] "Type_Name"
Multiple Assignment Expression: (x1, ..., xN) = expression
--> rpn-expression =xN ... =x1
Note: If xj is missing, it will be replaced by `pop'
Function call: f (x1, ..., xN)
--> __arg x1 ... xN __earg f
Note: if xj is missing, it will be replaced by NULL
Array reference: X [x1, .., xN]
--> __arg x1 ... xN X __aget
Note: __earg is implicit
Array assignment: X [x1, ... xN] ASSIGNMENT-OP
--> __arg x1 ... xN X RPN-ASSIGNMENT-OP
ASSIGNMENT-OP:
= --> __aput
++ --> __aput_plusplus
-- --> __aput_minusminus
+= --> __aput_pluseqs
-= --> __aput_minuseqs
Note: __earg is implicit
Structure Reference: X.a --> "a" X .
Structure Assignment: X.a ASSIGNMENT-OP expression;
--> rpn-expression "a" X RPN-ASSIGNMENT-OP
ASSIGNMENT-OP --> RPN-ASSIGNMENT-OP:
= --> __struct_eqs
+= --> __struct_pluseqs
-= --> __struct_minuseqs
-- --> __struct_minusminus
++ --> __struct_plusplus
Variable Alias: &x --> __alias x
foreach (X) using (Y,...) block
--> X __arg Y... __earg { block } foreach