The TGE grammar doesn't deal with embedded }'s:
Valid grammars:
transform a (b) {
# do nothing
}
transform a (b) {
# do nothing {
}
Invalid:
transform a (b) {
# do nothing}
}
transform a (b) {
# do {nothing}
}
--
Will "Coke" Coleda
wi...@coleda.com
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).
If we don't need this, I vote that we close the ticket.
FWIW, none of PGE, PCT, and NQP are using TGE.
Pm
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
Sorry I wasn't clear -- I was thinking we would use the
closing-brace-at-beginning-of-line primarily when the transform
had :language('PIR') .
Pm
Thank you very much.
kid51