Thank you both, Pau
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
That is indeed the solution.
Doru
> On Mar 13, 2018, at 6:16 AM, Holger Freyther wrote:
>
>
>
>> On 12. Mar 2018, at 23:07, Pau Guillot wrote:
>>
>> (#word asParser , #digit asParser plus flatten ==> [:node | node second])
>> star parse:
> On 12. Mar 2018, at 23:07, Pau Guillot wrote:
>
> (#word asParser , #digit asParser plus flatten ==> [:node | node second])
> star parse: 'A123A123'.
> -> #('123' '123')
(((#word asParser , #digit asParser plus flatten ==> [:node | node second])
plus) ==> [
Hello,
I can not manage this syntax that seems to be simple.
MyParser parse: 'A123A123' -> '123123'
not: #('123' '123')
(#word asParser , #digit asParser plus flatten ==> [:node | node second])
star parse: 'A123A123'.
-> #('123' '123')
(#word asParser , #digit asParser plus flatten ==> [:node