- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
java parser?
Thu, 2009-02-26, 22:23
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
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
Thu, 2009-02-26, 23:27
#2
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>
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
Pi Song
On Fri, Feb 27, 2009 at 8:22 AM, Meredith Gregory <lgreg.meredith@gmail.com> wrote: