Analyzing Python?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Analyzing Python?

Alexandre Bergel-5
Hi!

Is there any effort in analyzing code in Moose?

Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Analyzing Python?

Stephan Eggermont-3
On 13/06/16 15:20, Alexandre Bergel wrote:
> Is there any effort in analyzing code in Moose?

I've seen some effort to adapt petitparser to deal
with fixed spacing

Stephan


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Analyzing Python?

abergel
Okay…
I will check.

Cheers,
Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On Jun 13, 2016, at 3:24 PM, Stephan Eggermont <[hidden email]> wrote:

On 13/06/16 15:20, Alexandre Bergel wrote:
Is there any effort in analyzing code in Moose?

I've seen some effort to adapt petitparser to deal
with fixed spacing

Stephan


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Analyzing Python?

Jan Kurš-2
There is a PPMiniPythonGrammar, which can extract structure elements (classes, methods, if-then-else, while, try-catch blocks, i.e. the ones using INDENT and DEDENT). The performance is not good in general, but can be much better when using PetitCompiler (http://scg.unibe.ch/research/petitcompiler).

Cheers,
Jan

On Mon, Jun 13, 2016 at 10:05 PM Alexandre Bergel <[hidden email]> wrote:
Okay…
I will check.

Cheers,
Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On Jun 13, 2016, at 3:24 PM, Stephan Eggermont <[hidden email]> wrote:

On 13/06/16 15:20, Alexandre Bergel wrote:
Is there any effort in analyzing code in Moose?

I've seen some effort to adapt petitparser to deal
with fixed spacing

Stephan


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Analyzing Python?

abergel
Okay!

thanks!

Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On Jun 14, 2016, at 11:57 AM, Jan Kurš <[hidden email]> wrote:

There is a PPMiniPythonGrammar, which can extract structure elements (classes, methods, if-then-else, while, try-catch blocks, i.e. the ones using INDENT and DEDENT). The performance is not good in general, but can be much better when using PetitCompiler (http://scg.unibe.ch/research/petitcompiler).

Cheers,
Jan

On Mon, Jun 13, 2016 at 10:05 PM Alexandre Bergel <[hidden email]> wrote:
Okay…
I will check.

Cheers,
Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On Jun 13, 2016, at 3:24 PM, Stephan Eggermont <[hidden email]> wrote:

On 13/06/16 15:20, Alexandre Bergel wrote:
Is there any effort in analyzing code in Moose?

I've seen some effort to adapt petitparser to deal
with fixed spacing

Stephan


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Analyzing Python?

Thierry Goubier
In reply to this post by Alexandre Bergel-5
Hi Alexandre,

there is a full Python 2.7 parser in SmaCC [1], with an AST building
code. What is missing is the FAMIX building code.

Thierry

[1] http://github.com/ThierryGoubier/SmaCC

Le 13/06/2016 15:20, Alexandre Bergel a écrit :

> Hi!
>
> Is there any effort in analyzing code in Moose?
>
> Alexandre
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.list.inf.unibe.ch/listinfo/moose-dev
>

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Analyzing Python?

abergel
Thanks!

Alexandre


> On Jun 14, 2016, at 2:30 PM, Thierry Goubier <[hidden email]> wrote:
>
> Hi Alexandre,
>
> there is a full Python 2.7 parser in SmaCC [1], with an AST building code. What is missing is the FAMIX building code.
>
> Thierry
>
> [1] http://github.com/ThierryGoubier/SmaCC
>
> Le 13/06/2016 15:20, Alexandre Bergel a écrit :
>> Hi!
>>
>> Is there any effort in analyzing code in Moose?
>>
>> Alexandre
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.list.inf.unibe.ch/listinfo/moose-dev
>>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.list.inf.unibe.ch/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev