Patrick R. Michaud via RT wrote:
On Sun Jul 23 06:35:21 2006, coke wrote:
The TGE grammar doesn't deal with embedded }'s:

Invalid:

transform a (b) {
  # do nothing}
}

transform a (b) {
  # do {nothing}
}

If we still need this, I vote that tge transforms require the
closing brace to be at the beginning of a line (possibly preceded by
whitespace).

Won't work, because the body of a transform could be written in, say, Perl 6, and so could have closing braces (at the beginning of a line with or without preceding whitespace) in the body of the rule.

More likely is to change the parser so it accepts various different delimiters:

  transform a /b/do {nothing}/;

etc.

Allison

Reply via email to