Peter Kenny wrote
> I would expect the parser which fails to also
> fail, for the same reason, if the input is just 'John Smith' without the
> 'Jr'.
Correct! It did.
Peter Kenny wrote
> The top-level construct in your parser is PPSequenceParser, which works in
> a
> simple-minded way; it just ch
two
forenames. Some people have double-barrelled surnames, with or without a
hyphen. Those are just a few of the complications I can think of. So good
luck!
Hope this helps
Peter Kenny
-Original Message-
From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of
Sean P. D
Given:
generationalPart := (#space asParser, generational) ==> #second.
middleName := (#space asParser, (generational not, abbreviatableToken)
==>
#second) ==> #second.
lastName := (#space asParser, (generational not, token) ==> #second) ==>
#second.
and
input := 'J