langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
|
|
@ -0,0 +1,3 @@
|
|||
if condition then
|
||||
;;; Action
|
||||
endif;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#_IF condition1
|
||||
/* Variant 1 */
|
||||
#_ELSEIF condition2
|
||||
/* Variant 2 */
|
||||
#_ELSE
|
||||
/* Variant 3 */
|
||||
#_ENDIF
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
if condition then
|
||||
;;; Action1
|
||||
else
|
||||
;;; Alternative action
|
||||
endif;
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
if condition1 then
|
||||
;;; Action1
|
||||
elseif condition2 then
|
||||
;;; Action1
|
||||
elseif condition2 then
|
||||
;;; Action2
|
||||
elseif condition3 then
|
||||
;;; Action3
|
||||
else
|
||||
;;; Alternative action
|
||||
endif;
|
||||
|
|
@ -0,0 +1 @@
|
|||
unless condition then /* Action */ endunless;
|
||||
|
|
@ -0,0 +1 @@
|
|||
if not(condition) then /* Action */ endif;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
if condition1 then
|
||||
;;; Action1
|
||||
elseunless condition2 then
|
||||
;;; Action2
|
||||
endif;
|
||||
;;; Action2
|
||||
endif;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
if condition1 then
|
||||
;;; Action1
|
||||
elseif not(condition2) then
|
||||
;;; Action2
|
||||
endif;
|
||||
|
|
@ -0,0 +1 @@
|
|||
if x > 0 then 1 elseif x < 0 then -1 else 0 endif -> sign_x ;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
switchon(x)
|
||||
case .isstring then printf('A1');
|
||||
notcase .isinteger then printf('A2');
|
||||
case = 2 orcase = 3 then printf('A3');
|
||||
case > 4 andcase < 15 then printf('A4');
|
||||
else printf('A5');
|
||||
endswitchon;
|
||||
Loading…
Add table
Add a link
Reference in a new issue