10得票1回答
在Pharo中使用PetitParser解析注释

有没有比这更简单的解析单行注释的方法?comment ^ '//' asParser , (#any asParser starLazy: (#newline asParser)) , #newline asParser ==...

10得票2回答
我该在哪里找到更多使用PetitParser的示例?

我正在寻找除了PPArithmeticParser和PPLambdaParser以外的PetitParser使用示例,它们提供在测试包和Lukas的一些博客文章中。如果有人愿意分享他们的示例,将不胜感激。 更新:https://github.com/NicolasPetton/jtalk/b...

7得票4回答
使用PetitParser在Smalltalk字符串中查找标记

我想解析 'This,is,an,example,text' 就像在findTokens中一样 'This,is,an,example,text' findTokens: $, an OrderedCollection('This' 'is' 'an' 'example' 'text...