[antlr-interest] Handling 'finally' in language target that doesn't have 'finally'
Gavin Lambert
antlr at mirality.co.nz
Mon Jan 19 11:53:57 PST 2009
At 08:39 20/01/2009, Rick Mann wrote:
>In a language like C++, which stupidly doesn't support
>"finally", what's the right way to write a grammar? To just
>not use "finally" in it, and use init & after? Is there a
>way to signal to ANTLR (from the back-end implementation)
>that finally should not be allowed?
There's actually no technical reason (from a language standpoint)
why "finally" couldn't be supported in C/C++ language targets
(apart from the fact that there isn't a C++ target yet for v3).
I don't know if it *is* actually supported, but it could be.
More information about the antlr-interest
mailing list