develooper Front page | perl.perl5.porters | Postings from July 2021

Re: PSC #031 2021-07-30

Thread Previous | Thread Next
From:
Yuki Kimoto
Date:
July 31, 2021 05:45
Subject:
Re: PSC #031 2021-07-30
Message ID:
CAExogxOA2MG1un+yQ7oubpVLNc=ZbPJzh2Q33byvQ54svey1cA@mail.gmail.com
2021-7-31 1:24 Paul "LeoNerd" Evans <leonerd@leonerd.org.uk> wrote:

>
> Perl could maybe use that, or do something nicer, if we started making
> a distinction about colons and significant whitespace before/after to
> work out whether something is a label or not. And wouldn't it be nice
> to have a real AST and not rely on hacks like PLS or PPI/PPR... More on
> that another day perhaps.
> om/stores/leonerd/ <https://www.tindie.com/stores/leonerd/>


I think one reason Perl can't do static analysis is that the interpretation
of the parentheses of a function depends on the loading of other modules.

And another reason is there is a source filter.

Is there a realistic way to get the AST with static analysis?

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About