【发布时间】:2011-10-18 07:15:09
【问题描述】:
我要解析
'This,is,an,example,text'
类似于 findTokens
'This,is,an,example,text' findTokens: $,
an OrderedCollection('This' 'is' 'an' 'example' 'text')
但无法弄清楚如何使用 PetitParser、delimitedBy: 和 separatorBy: 并没有帮助我尝试过
( #any asParser delimitedBy: $, asParser ) plus flatten parse: 'This,is,an,example,text'
但显然没用
【问题讨论】:
标签: parsing smalltalk petitparser