Hi.
Am having some trouble composing a transform on a grammar that has an optional 
field.

A simple example:

I'm looking for a formatting code: e.g. "    d ",
But it could include an optional offset specification: "    [16]  d "

If that optional field is there, I need to grab the number between the brackets.
Otherwise, I can assume it to be zero.

I can parse both forms ok,

But haven't figured out how to build a transform to handle both the presence or 
absence of the optional digits in brackets.

Any suggestions would be greatly appreciated.


Thanks.

Reply via email to