이 (Sunanda의 제안 How can I parse [a/b] ? syntax error in Rebol? 덕분에) 잘 작동 :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
하지만 지금 (출력 클래스 추가) 일부 APPEND 지침을 추가해야하고 그렇지 않습니다 더 이상 작동 : 여기
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
자, 다시 Sunanda가 대답하는지 봅시다. 튜토리얼에서 질문하는 이유를 이해할 수는 없지만 잘못된 답변을 준비하고 있습니다. –
REBOL에 대한 질문이있는 포럼에서 REBOL에 대한 질문에 답변하게되어 기쁩니다 (답변을 알고있는 경우). REBOL 커뮤니티의 Stackoverflow 활용은 지금까지는 아주 적습니다. 주로 RebolTutorial에서 질문하고 여러 사람들 (주로 지금까지)이 응답했습니다. 이것이 누군가에게 문제가된다면, Reboltutorial은 REBOL 관련 포럼 중 하나 인 Q & A 지원으로 전환 할 수 있습니다. – Sunanda