ENUMERATIONS in NetRexx3 (Rey)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

ENUMERATIONS in NetRexx3 (Rey)

ThSITC
Hello there,
    I would like to implement the following SYNATX for ENUMERATION in
NetRexx3 (Rey)

a = {YES,NO}
b= {IF,THEN,ELSE, ...}

Please do note ht foling in my proposal:

Within the CURLY BRACES, there are LITERALS, by default, unless spelled
in Lower-Case,
where they will be VARIABLES.

QUOTES MIGHT be used, but must not.

In general, my idea is to use the CURLY BRACES for so calles SETS
(choice-lsits, as I do call them)

The curly brace woul initiate a new token-level in my parser ..

What do you think?

Thomas.

PS: within the curly braces (the choice list, the equal sign might be
used to define a synonym, e.g.:

a = {YES=TRUE, NO=FALSE}


What do you think?

PS: and also: How should we DENOTE the DEFAULT value?

Massa Thomas.



--
Thomas Schneider (www.thsitc.com)
_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Thomas Schneider, Vienna, Austria (Europe) :-)

www.thsitc.com
www.db-123.com