[antlr-interest] Java Parser to analyze C++ language syntax

SSG JJV virtuoso.coders at gmail.com
Sat Feb 28 21:30:02 PST 2009


Is there a way that i can download all the source files in one short for Sun
C/C++ ANTLR parser files?
I want to download complete "src" folder under
http://hg.netbeans.org/main/file/234830caa1af/cnd.modelimpl/


Thanks,

On Sat, Feb 28, 2009 at 9:37 PM, SSG JJV <virtuoso.coders at gmail.com> wrote:

> I am afraid, i could not find the parser in antlr. The one provided by Sun,
> i could never get it to work.I found one parser on JavaCC, implemented in
> Java. This seems to be the closest to my requirement. But that parser has
> bugs which i need to address myself.
>
> Thanks for the posts.
>
> ----
>
>
> On Fri, Feb 27, 2009 at 3:27 PM, Andy Tripp <antlr at jazillian.com> wrote:
>
>> Kaleb Pederson wrote:
>>
>>> On Thu, Feb 26, 2009 at 8:06 PM, SSG JJV <virtuoso.coders at gmail.com>
>>> wrote:
>>>
>>>> Yes. But David's parser outputs C++ parser. I need a Java Parser to
>>>> validate
>>>> C++ language syntax.
>>>> Thanks
>>>>
>>>
>>> It looks as if LLVM now has capable and stable C++ support:
>>>
>>> LLVM includes "Front-ends for C and C++ based on the GCC 3.4 and 4.0.1
>>> parsers. They support the ANSI-standard C and C++ languages to the
>>> same degree that GCC supports them. Additionally, many GCC extensions
>>> are supported" [1].
>>>
>>> I've followed some of their progress and architecture and I believe it
>>> would be a good starting point.
>>>
>>
>> But it looks like your parser needs to be written in C++ to use LLVM, no?
>> And the wikipedia entry only mentions a front-end for parsing Java byte
>> code,
>> with no mention of parsing Java source code (other than saying one could
>> be developed). Is there a Java source code frontend for LLVM in
>> development?
>>
>> Andy
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090228/1f5e93a4/attachment.html 


More information about the antlr-interest mailing list