Minor quibble:

western-name:
   first-name whitespace last-name

This should be 'western-style-name' to match your first rule which invoked 'western-style-name'.

last-name:
   [a-zA-Z]

first-name:
   [a-zA-Z]

Since there is no distinction between 'last-name' and 'first-name', 'eastern-style-name' will never match.

        But we get the gist of your comment in any case.

You might want to take a look at Rats! which has been cited here extensively. You could probably leverage it to get to where you want to go.

Cheers,

Peter

_______________________________________________
PEG mailing list
PEG@lists.csail.mit.edu
https://lists.csail.mit.edu/mailman/listinfo/peg

Reply via email to