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

Re: [Lift] Re: java parser?

4 replies
Meredith Gregory
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Derek, et al,
Thanks for all the quick responses. i found that both versions of the ANTLR 1.6 grammar blow up (egregiously) in their own ANTLRWORKS tool. The 1.5 grammar from Terry Parr seems to work. 
The google codebase javaparser (that i think Ricky Clarkson was pointing to) seems a good bet. That's my poison of choice for now.
Best wishes,
--greg

On Thu, Feb 26, 2009 at 2:12 PM, Derek Chen-Becker <dchenbecker@gmail.com> wrote:
I've only ever used ANTLR (http://www.antlr.org/) to do parsers. There's an experimental Java 6 grammar that you could use here:

http://openjdk.java.net/projects/compiler-grammar/antlrworks/Java.g

Derek

On Thu, Feb 26, 2009 at 3:22 PM, 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




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 2Bunsubscribe [at] googlegroups [dot] com" target="_blank" rel="nofollow">liftweb+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---




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

+1 206.650.3740

http://biosimilarity.blogspot.com
Meredith Gregory
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: Re: [Lift] Re: java parser?
Ricky,
Aha! i was off-by-1 on the number of c's. Thanks.
Best wishes,
--greg

On Thu, Feb 26, 2009 at 2:30 PM, Ricky Clarkson <ricky.clarkson@gmail.com> wrote:
No, I was pointing at javac, as in the Java compiler.

2009/2/26 Meredith Gregory <lgreg.meredith@gmail.com>
Derek, et al,
Thanks for all the quick responses. i found that both versions of the ANTLR 1.6 grammar blow up (egregiously) in their own ANTLRWORKS tool. The 1.5 grammar from Terry Parr seems to work. 
The google codebase javaparser (that i think Ricky Clarkson was pointing to) seems a good bet. That's my poison of choice for now.
Best wishes,
--greg

On Thu, Feb 26, 2009 at 2:12 PM, Derek Chen-Becker <dchenbecker@gmail.com> wrote:
I've only ever used ANTLR (http://www.antlr.org/) to do parsers. There's an experimental Java 6 grammar that you could use here:

http://openjdk.java.net/projects/compiler-grammar/antlrworks/Java.g

Derek

On Thu, Feb 26, 2009 at 3:22 PM, 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




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 2Bunsubscribe [at] googlegroups [dot] com" target="_blank" rel="nofollow">liftweb+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---




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

+1 206.650.3740

http://biosimilarity.blogspot.com




--
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: Re: [Lift] Re: java parser?
No, I was pointing at javac, as in the Java compiler.

2009/2/26 Meredith Gregory <lgreg.meredith@gmail.com>
Derek, et al,
Thanks for all the quick responses. i found that both versions of the ANTLR 1.6 grammar blow up (egregiously) in their own ANTLRWORKS tool. The 1.5 grammar from Terry Parr seems to work. 
The google codebase javaparser (that i think Ricky Clarkson was pointing to) seems a good bet. That's my poison of choice for now.
Best wishes,
--greg

On Thu, Feb 26, 2009 at 2:12 PM, Derek Chen-Becker <dchenbecker@gmail.com> wrote:
I've only ever used ANTLR (http://www.antlr.org/) to do parsers. There's an experimental Java 6 grammar that you could use here:

http://openjdk.java.net/projects/compiler-grammar/antlrworks/Java.g

Derek

On Thu, Feb 26, 2009 at 3:22 PM, 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




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 2Bunsubscribe [at] googlegroups [dot] com" target="_blank" rel="nofollow">liftweb+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---




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

+1 206.650.3740

http://biosimilarity.blogspot.com

Meredith Gregory
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: [Lift] Re: java parser?
Lifted,
FYI -- the google codebase javaproject has some interesting challenges to be used with scala/lift project.
  1. binary not compiled with same version of the java compiler
  2. sources not utf-8
Nothing insurmountable, but colluding to make the usage experience less than optimal. One interesting result of the non-utf-8ness: after a certain number of warnings from the scala built-in java compiler the mvn build process just craps out with no error reportage. It just falls over.
Best wishes,
--greg

On Thu, Feb 26, 2009 at 2:25 PM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
Derek, et al,
Thanks for all the quick responses. i found that both versions of the ANTLR 1.6 grammar blow up (egregiously) in their own ANTLRWORKS tool. The 1.5 grammar from Terry Parr seems to work. 
The google codebase javaparser (that i think Ricky Clarkson was pointing to) seems a good bet. That's my poison of choice for now.
Best wishes,
--greg

On Thu, Feb 26, 2009 at 2:12 PM, Derek Chen-Becker <dchenbecker@gmail.com> wrote:
I've only ever used ANTLR (http://www.antlr.org/) to do parsers. There's an experimental Java 6 grammar that you could use here:

http://openjdk.java.net/projects/compiler-grammar/antlrworks/Java.g

Derek

On Thu, Feb 26, 2009 at 3:22 PM, 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




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 2Bunsubscribe [at] googlegroups [dot] com" target="_blank" rel="nofollow">liftweb+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---




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

+1 206.650.3740

http://biosimilarity.blogspot.com



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

+1 206.650.3740

http://biosimilarity.blogspot.com
Joshua.Suereth
Joined: 2008-09-02,
User offline. Last seen 32 weeks 5 days ago.
Re: [Lift] Re: java parser?
Yay! Another bug to fix...  I'll try to make sure maven doesn't just roll over and die.

Sent from my iPhone
On Feb 26, 2009, at 7:14 PM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:

Lifted,
FYI -- the google codebase javaproject has some interesting challenges to be used with scala/lift project.
  1. binary not compiled with same version of the java compiler
  2. sources not utf-8
Nothing insurmountable, but colluding to make the usage experience less than optimal. One interesting result of the non-utf-8ness: after a certain number of warnings from the scala built-in java compiler the mvn build process just craps out with no error reportage. It just falls over.
Best wishes,
--greg

On Thu, Feb 26, 2009 at 2:25 PM, Meredith Gregory < (lgreg [dot] meredith [at] gmail [dot] com> wrote:
Derek, et al,
Thanks for all the quick responses. i found that both versions of the ANTLR 1.6 grammar blow up (egregiously) in their own ANTLRWORKS tool. The 1.5 grammar from Terry Parr seems to work. 
The google codebase javaparser (that i think Ricky Clarkson was pointing to) seems a good bet. That's my poison of choice for now.
Best wishes,
--greg

On Thu, Feb 26, 2009 at 2:12 PM, Derek Chen-Becker < (dchenbecker [at] gmail [dot] com> wrote:
I've only ever used ANTLR (http://www.antlr.org/) to do parsers. There's an experimental Java 6 grammar that you could use here:

http://openjdk.java.net/projects/compiler-grammar/antlrworks/Java.g

Derek

On Thu, Feb 26, 2009 at 3:22 PM, Meredith Gregory < (lgreg [dot] meredith [at] gmail [dot] 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








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

+1 206.650.3740

http://biosimilarity.blogspot.com



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

+1 206.650.3740

http://biosimilarity.blogspot.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to liftweb+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

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