[Haskell-cafe] Parsec for C or C++

Sterling Clover s.clover at gmail.com
Thu Jul 16 21:58:40 EDT 2009


A parser for JavaScript (admittedly a much simpler beast) is part of  
Brown's WebBits:

http://hackage.haskell.org/packages/archive/WebBits/0.15/doc/html/ 
BrownPLT-JavaScript-Parser.html

Cheers,
Sterl.

On Jul 16, 2009, at 1:40 PM, Roy Lowrance wrote:

> Turns out that Language.C uses alex and happy.
>
> I'm looking to use Parsec.
>
> So back to the original question: Does anyone know of a C or java
> parser written using Parsec?
>
> - Roy
>
> On Thu, Jul 16, 2009 at 12:43 PM, Roy  
> Lowrance<roy.lowrance at gmail.com> wrote:
>> Thanks Rick. A perfect tip! - Roy
>>
>> On Thu, Jul 16, 2009 at 12:29 PM, Rick  
>> R<rick.richardson at gmail.com> wrote:
>>> There is language.c
>>>
>>> http://www.sivity.net/projects/language.c/
>>> http://hackage.haskell.org/package/language-c
>>>
>>>
>>> From a parsing standpoint, C++ is a massive departure from C.  
>>> Good luck
>>> though.
>>>
>>>
>>> On Thu, Jul 16, 2009 at 12:25 PM, Roy Lowrance  
>>> <roy.lowrance at gmail.com>
>>> wrote:
>>>>
>>>> I am working on a research language that is a variant of C. I'd  
>>>> like
>>>> to use Parsec as the parser.
>>>>
>>>> Is there an existing Parsec parser for C or C++ (or Java) that  
>>>> could
>>>> serve as a starting point?
>>>>
>>>> Thanks, Roy
>>>> _______________________________________________
>>>> Haskell-Cafe mailing list
>>>> Haskell-Cafe at haskell.org
>>>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>>
>>>
>>>
>>> --
>>> "The greatest obstacle to discovering the shape of the earth, the
>>> continents, and the oceans was not ignorance but the illusion of  
>>> knowledge."
>>> - Daniel J. Boorstin
>>>
>>>
>>
>>
>>
>> --
>> Roy Lowrance
>> home: 212 674 9777
>> mobile: 347 255 2544
>>
>
>
>
> -- 
> Roy Lowrance
> home: 212 674 9777
> mobile: 347 255 2544
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe



More information about the Haskell-Cafe mailing list