Visual Basic / VB.Net parsers

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

Visual Basic / VB.Net parsers

Mircea Filip Lungu
Is there a parser for these languages? 

Thanks,
M.


--
Mircea Lungu
Researcher
Software Composition Group
University of Bern
http://lungu.org/mircea


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

Re: Visual Basic / VB.Net parsers

Fabrizio Perin
should be 
55958-270-3842533-12446

if it doesn't work let me know.

Cheers,

Fabrizio

On 30 Aug 2010, at 13:34, Mircea Lungu wrote:

Is there a parser for these languages? 

Thanks,
M.


--
Mircea Lungu
Researcher
Software Composition Group
University of Bern
http://lungu.org/mircea

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


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

Re: Visual Basic / VB.Net parsers

Alexandre Bergel
Hi Fabrizio,

I do not understand your answer. Is there a parser for Visual Basic .Net that one can use with Moose?

Cheers,
Alexandre

On 30 Aug 2010, at 08:53, Fabrizio Perin wrote:

> should be
> 55958-270-3842533-12446
>
> if it doesn't work let me know.
>
> Cheers,
>
> Fabrizio
>
> On 30 Aug 2010, at 13:34, Mircea Lungu wrote:
>
>> Is there a parser for these languages?
>>
>> Thanks,
>> M.
>>
>>
>> --
>> Mircea Lungu
>> Researcher
>> Software Composition Group
>> University of Bern
>> http://lungu.org/mircea
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

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






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

Re: Visual Basic / VB.Net parsers

anquetil.nicolas
it's easy, it's an SMS written on a mobile phone keyboard.
It reads:
"klyku ar. fuiblef +eggo"

must be in Klingon, which I don't understand either :-)

seriously, the answer puzzled me too

nicolas

On Wed, Sep 8, 2010 at 11:56 PM, Alexandre Bergel <[hidden email]> wrote:

> Hi Fabrizio,
>
> I do not understand your answer. Is there a parser for Visual Basic .Net that one can use with Moose?
>
> Cheers,
> Alexandre
>
> On 30 Aug 2010, at 08:53, Fabrizio Perin wrote:
>
>> should be
>> 55958-270-3842533-12446
>>
>> if it doesn't work let me know.
>>
>> Cheers,
>>
>> Fabrizio
>>
>> On 30 Aug 2010, at 13:34, Mircea Lungu wrote:
>>
>>> Is there a parser for these languages?
>>>
>>> Thanks,
>>> M.
>>>
>>>
>>> --
>>> Mircea Lungu
>>> Researcher
>>> Software Composition Group
>>> University of Bern
>>> http://lungu.org/mircea
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>



--
Nicolas Anquetil        Univ. Lille1 / INRIA-equipe RMod

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

Re: Visual Basic / VB.Net parsers

Fabrizio Perin
Hi,
i'm soo sorry but it is not a secret/encrypted message. The idea was to send a mail to Mircea picking up its email address from the mail about VB and this is the result :)

Really sorry for the spam!

By the way as far as i know there is nothing for VB in Moose but recently i got quite impressed from the power of petit parser. I think that would be possible to setup a basic VB parser with Petit Parser in a week.

Sorry again,

Fabrizio



On 9 Sep 2010, at 10:48, Nicolas Anquetil wrote:

> it's easy, it's an SMS written on a mobile phone keyboard.
> It reads:
> "klyku ar. fuiblef +eggo"
>
> must be in Klingon, which I don't understand either :-)
>
> seriously, the answer puzzled me too
>
> nicolas
>
> On Wed, Sep 8, 2010 at 11:56 PM, Alexandre Bergel <[hidden email]> wrote:
>> Hi Fabrizio,
>>
>> I do not understand your answer. Is there a parser for Visual Basic .Net that one can use with Moose?
>>
>> Cheers,
>> Alexandre
>>
>> On 30 Aug 2010, at 08:53, Fabrizio Perin wrote:
>>
>>> should be
>>> 55958-270-3842533-12446
>>>
>>> if it doesn't work let me know.
>>>
>>> Cheers,
>>>
>>> Fabrizio
>>>
>>> On 30 Aug 2010, at 13:34, Mircea Lungu wrote:
>>>
>>>> Is there a parser for these languages?
>>>>
>>>> Thanks,
>>>> M.
>>>>
>>>>
>>>> --
>>>> Mircea Lungu
>>>> Researcher
>>>> Software Composition Group
>>>> University of Bern
>>>> http://lungu.org/mircea
>>>>
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>
>
>
> --
> Nicolas Anquetil        Univ. Lille1 / INRIA-equipe RMod
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>


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

Re: Visual Basic / VB.Net parsers

anquetil.nicolas
If you go for writing the parser, then you might want to look at a
(not so recent) VB grammar for JavaCC
(http://www.paulcager.org/products/vbparser/)
This is for VB 6 (I don't know what is the current version of VB)

- Maybe it could be translated to Petit Parser ??????
- Apparently, there is a jar file, so maybe it can be used directly
with JNIPort ?????

nicolas

On Thu, Sep 9, 2010 at 4:43 PM, Fabrizio Perin <[hidden email]> wrote:

> Hi,
> i'm soo sorry but it is not a secret/encrypted message. The idea was to send a mail to Mircea picking up its email address from the mail about VB and this is the result :)
>
> Really sorry for the spam!
>
> By the way as far as i know there is nothing for VB in Moose but recently i got quite impressed from the power of petit parser. I think that would be possible to setup a basic VB parser with Petit Parser in a week.
>
> Sorry again,
>
> Fabrizio
>
>
>
> On 9 Sep 2010, at 10:48, Nicolas Anquetil wrote:
>
>> it's easy, it's an SMS written on a mobile phone keyboard.
>> It reads:
>> "klyku ar. fuiblef +eggo"
>>
>> must be in Klingon, which I don't understand either :-)
>>
>> seriously, the answer puzzled me too
>>
>> nicolas
>>
>> On Wed, Sep 8, 2010 at 11:56 PM, Alexandre Bergel <[hidden email]> wrote:
>>> Hi Fabrizio,
>>>
>>> I do not understand your answer. Is there a parser for Visual Basic .Net that one can use with Moose?
>>>
>>> Cheers,
>>> Alexandre
>>>
>>> On 30 Aug 2010, at 08:53, Fabrizio Perin wrote:
>>>
>>>> should be
>>>> 55958-270-3842533-12446
>>>>
>>>> if it doesn't work let me know.
>>>>
>>>> Cheers,
>>>>
>>>> Fabrizio
>>>>
>>>> On 30 Aug 2010, at 13:34, Mircea Lungu wrote:
>>>>
>>>>> Is there a parser for these languages?
>>>>>
>>>>> Thanks,
>>>>> M.
>>>>>
>>>>>
>>>>> --
>>>>> Mircea Lungu
>>>>> Researcher
>>>>> Software Composition Group
>>>>> University of Bern
>>>>> http://lungu.org/mircea
>>>>>
>>>>> _______________________________________________
>>>>> Moose-dev mailing list
>>>>> [hidden email]
>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>> --
>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>> Alexandre Bergel  http://www.bergel.eu
>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>
>>
>>
>> --
>> Nicolas Anquetil        Univ. Lille1 / INRIA-equipe RMod
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>



--
Nicolas Anquetil        Univ. Lille1 / INRIA-equipe RMod

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

Re: Visual Basic / VB.Net parsers

Alberto Bacchelli
In reply to this post by anquetil.nicolas
On 9/9/10 4:45 PM, Fabrizio Perin wrote:
> Hi,
> i'm soo sorry but it is not a secret/encrypted message. The idea was to send a mail to Mircea picking up its email address from the mail about VB and this is the result :)
>
> Really sorry for the spam!
>
> By the way as far as i know there is nothing for VB in Moose but recently i got quite impressed from the power of petit parser. I think that would be possible to setup a basic VB parser with Petit Parser in a week.

I don't think it will be as easy as it seems.
PetitParser is great and simplifies a lot your life.
The problem is finding a reliable VB grammar to implement,
and creating the AST from the grammar.
I am working (although with a certain discontinuity) on
PetitJava and it is taking much time.

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

Re: Visual Basic / VB.Net parsers

Alexandre Bergel
Let us know how it goes Alberto

A good test for your work may be to parse the whole JDK. I did a similar experiment a few years ago. I used Smacc. I had to manually modify some files because the java parser in the Java compiler is written by hand. And it permits things that are not expressed in the grammar. For example:

class Foo {} ;

is accepted by the Java compiler, but it is hardly accessed by most grammars.


Cheers,
Alexandre


On 9 Sep 2010, at 11:55, Alberto Bacchelli wrote:

> On 9/9/10 4:45 PM, Fabrizio Perin wrote:
>> Hi,
>> i'm soo sorry but it is not a secret/encrypted message. The idea was to send a mail to Mircea picking up its email address from the mail about VB and this is the result :)
>>
>> Really sorry for the spam!
>>
>> By the way as far as i know there is nothing for VB in Moose but recently i got quite impressed from the power of petit parser. I think that would be possible to setup a basic VB parser with Petit Parser in a week.
>
> I don't think it will be as easy as it seems.
> PetitParser is great and simplifies a lot your life.
> The problem is finding a reliable VB grammar to implement,
> and creating the AST from the grammar.
> I am working (although with a certain discontinuity) on
> PetitJava and it is taking much time.
>
> Alberto
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

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






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

Re: Visual Basic / VB.Net parsers

Alberto Bacchelli
In reply to this post by Alberto Bacchelli
On 9/9/10 6:09 PM, Alexandre Bergel wrote:
> Let us know how it goes Alberto
>
> A good test for your work may be to parse the whole JDK. I did a similar experiment a few years ago. I used Smacc. I had to manually modify some files because the java parser in the Java compiler is written by hand. And it permits things that are not expressed in the grammar. For example:
>
> class Foo {} ;
>
> is accepted by the Java compiler, but it is hardly accessed by most grammars.

Yes, the Java Language Specifications are very very very badly written.
The book is full of errors and does not consider some cases, as
you also reported.
For this reason, I based my porting on the grammar written for
ANTLR: it passes all the regression tests that the hand-written
compiler passes.

If anyone wants to have a look,
you can find petitjava on squeaksource.

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

Re: Visual Basic / VB.Net parsers

Alberto Bacchelli
In reply to this post by Alberto Bacchelli
On 9/9/10 6:13 PM, [hidden email] wrote:

> On 9/9/10 6:09 PM, Alexandre Bergel wrote:
>> Let us know how it goes Alberto
>>
>> A good test for your work may be to parse the whole JDK. I did a similar experiment a few years ago. I used Smacc. I had to manually modify some files because the java parser in the Java compiler is written by hand. And it permits things that are not expressed in the grammar. For example:
>>
>> class Foo {} ;
>>
>> is accepted by the Java compiler, but it is hardly accessed by most grammars.
>
> Yes, the Java Language Specifications are very very very badly written.
> The book is full of errors and does not consider some cases, as
> you also reported.
> For this reason, I based my porting on the grammar written for
> ANTLR: it passes all the regression tests that the hand-written
> compiler passes.

"It" is referring to the ANTLR grammar, not to PetitJava (yet ;)
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev