[swift-dev] Consider removing the space in Swift AST dump's "decl" attribute?
Dmitri Gribenko
gribozavr at gmail.com
Mon May 9 11:09:48 CDT 2016
On Sun, May 8, 2016 at 8:22 PM, Minsheng Liu via swift-dev
<swift-dev at swift.org> wrote:
> Hi,
>
> I notice that currently the dumped AST contains a parsing-unfriendly “decl”
> attribute like this:
>> decl=fib.(file).func decl.b at fib.swift:4:9
Dumped AST is not meant to be machine parseable. The format is
subject to change (and it does frequently change). Please don't parse
it, your tools will break with new compiler releases.
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
More information about the swift-dev
mailing list