zippy / ceptr

(a recomposable medium for distributed social computing) || (semantic self-describing protocol stacks)
http://ceptr.org
GNU General Public License v3.0
88 stars 17 forks source link

Add range specifiers in Symbol definitions #80

Open zippy opened 8 years ago

zippy commented 8 years ago

I have come up twice against wanting in my defs to specify that a given new Symbol is a use of a SYMBOL structure in which the value of the surface is limited to SYMBOLs of a given structure. This is much like saying a lattitude is a use of a float in which the values are limited to between 0 & 90. This should be implemented in a general fashion, but having some quick hacks for numbers (integers and floats), string enumeration/regexps, and symbols/semanticIDs may be worth doing.