langs a-z

This commit is contained in:
Ingy döt Net 2013-04-10 22:43:41 -07:00
parent db842d013d
commit d066446780
11389 changed files with 98361 additions and 1020 deletions

View file

@ -0,0 +1,3 @@
if condition then
;;; Action
endif;

View file

@ -0,0 +1,7 @@
#_IF condition1
/* Variant 1 */
#_ELSEIF condition2
/* Variant 2 */
#_ELSE
/* Variant 3 */
#_ENDIF

View file

@ -0,0 +1,5 @@
if condition then
;;; Action1
else
;;; Alternative action
endif;

View file

@ -0,0 +1,11 @@
if condition1 then
;;; Action1
elseif condition2 then
;;; Action1
elseif condition2 then
;;; Action2
elseif condition3 then
;;; Action3
else
;;; Alternative action
endif;

View file

@ -0,0 +1 @@
unless condition then /* Action */ endunless;

View file

@ -0,0 +1 @@
if not(condition) then /* Action */ endif;

View file

@ -0,0 +1,7 @@
if condition1 then
;;; Action1
elseunless condition2 then
;;; Action2
endif;
;;; Action2
endif;

View file

@ -0,0 +1,5 @@
if condition1 then
;;; Action1
elseif not(condition2) then
;;; Action2
endif;

View file

@ -0,0 +1 @@
if x > 0 then 1 elseif x < 0 then -1 else 0 endif -> sign_x ;

View file

@ -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;