This page is no longer maintained — Please continue to the home page at www.scala-lang.org

java parser?

3 replies
Meredith Gregory
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Scalads, lasses and Lifted,
i find myself in the situation where i need to parse a bunch of java source. Unfortunately my google-fu is not up to snuff to ferret out good open source java parsers. i'm wondering what the state of the scala java parsing is? i assume it's available 2.7.3. Is it documented? Does anyone who's used it in anger have any tips or resources they'd like to share?
Best wishes,
--greg

--
L.G. Meredith
Managing Partner
Biosimilarity LLC
806 55th St NE
Seattle, WA 98105

+1 206.650.3740

http://biosimilarity.blogspot.com
pi song
Joined: 2009-02-20,
User offline. Last seen 42 years 45 weeks ago.
Re: java parser?
Sorry that this is not a pure scala solution but at least it will work. You may just download javacc and java grammar file (from the same website) and then use javacc to generate java language parser.
Pi Song
On Fri, Feb 27, 2009 at 8:22 AM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
Scalads, lasses and Lifted,
i find myself in the situation where i need to parse a bunch of java source. Unfortunately my google-fu is not up to snuff to ferret out good open source java parsers. i'm wondering what the state of the scala java parsing is? i assume it's available 2.7.3. Is it documented? Does anyone who's used it in anger have any tips or resources they'd like to share?
Best wishes,
--greg

--
L.G. Meredith
Managing Partner
Biosimilarity LLC
806 55th St NE
Seattle, WA 98105

+1 206.650.3740

http://biosimilarity.blogspot.com

Ricky Clarkson
Joined: 2008-12-19,
User offline. Last seen 3 years 2 weeks ago.
Re: java parser?
I played with javac's Compiler API some time ago, albeit in Java.  Blog post: http://rickyclarkson.blogspot.com/2007/05/using-just-jdk-and-55-lines-i-can-find.html
Code without the spiel: http://docs.google.com/Doc?id=dx5mfkq_85hk6hhh

2009/2/26 pi song <pi.songs@gmail.com>
Sorry that this is not a pure scala solution but at least it will work. You may just download javacc and java grammar file (from the same website) and then use javacc to generate java language parser.
Pi Song
On Fri, Feb 27, 2009 at 8:22 AM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
Scalads, lasses and Lifted,
i find myself in the situation where i need to parse a bunch of java source. Unfortunately my google-fu is not up to snuff to ferret out good open source java parsers. i'm wondering what the state of the scala java parsing is? i assume it's available 2.7.3. Is it documented? Does anyone who's used it in anger have any tips or resources they'd like to share?
Best wishes,
--greg

--
L.G. Meredith
Managing Partner
Biosimilarity LLC
806 55th St NE
Seattle, WA 98105

+1 206.650.3740

http://biosimilarity.blogspot.com


malinova
Joined: 2010-11-01,
User offline. Last seen 1 year 48 weeks ago.
У Кэти <a href=

У Кэти был такой же вид, как тогда у ветеринара Она сидела, скрестив руки, и ждала от меня каких-то ужасных слов

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland