【发布时间】:2009-09-22 04:44:46
【问题描述】:
这很好用(感谢 Sunanda 的建议 How can I parse [a / b] ? syntax error in Rebol?):
attribute: copy []
class: copy []
definition-rule: compose/deep [some [set class word! 'is 'defined 'by
[some [copy attribute to (to-lit-word "/") thru (to-lit-word "/") ]]
copy attribute to end]]
parse [Customer is defined by First Name / Last Name / Email] definition-rule
但我现在需要添加一些附加指令(附加输出类),它不再起作用了:
attribute: copy []
class: copy []
definition-rule: compose/deep [some [set class word! (append output class) 'is 'defined 'by
[some [copy attribute to (to-lit-word "/") thru (to-lit-word "/") ]]
copy attribute to end]]
parse [Customer is defined by First Name / Last Name / Email] definition-rule
【问题讨论】:
-
好吧,让我们看看苏南达是否再次回答。我不太明白为什么教程会问问题,但我准备好出错了。
-
我很高兴在任何提出 REBOL 问题的论坛上回答有关 REBOL 的问题(如果我知道答案)。到目前为止,REBOL 社区对 Stackoverflow 的使用很少——主要是 RebolTutorial 提出问题,并且有几个人(到目前为止主要是我)做出了回应。如果这给任何人带来了问题,那么 Reboltutorial 可以切换到 REBOL 特定论坛之一以获得他/她的问答支持。
标签: rebol