[REBOL] Re: Parse rules for Rebol values
From: greggirwin:mindspring at: 23-Sep-2002 11:24
Rebol has these:
time? -- for testing a value to see if it's a time! value.
time! -- to indicate a value of time! type.
time -- a generic value that contains a time! value.
What would be a suitable name for a parse rule that picks out a time value
from text? How about:
If you already have other parse rules that map to REBOL datatypes, go for
consistency. If not, maybe that's something we should all think about. #"!"
is actually a valid character for use in words, correct? Would it be too
confusing to use that as a basis (e.g. time!!)? While 'time! would also be
valid, that might be *really* confusing.
The EBNF standard for a production rule ( ::= ) contains colons so that's
out as an option, unless we write parser to translate EBNF grammars for use
with REBOL. :)