Re: [Partially OT] A Java parser - part 2

1999-11-22 Thread Vincent Risi
Michael Emmel wrote: > Vincent Risi wrote: > > > Andreas Rueckert wrote: > > > > > Hi! > > > > > > On Thu, 18 Nov 1999 Paul Mclachlan wrote: > > > > > > The next problem occured when I wanted 2 parsers to use the same base classes > > > for the AST. Never managed to do that, and I couldn't patc

Re: [Partially OT] A Java parser - part 2

1999-11-21 Thread Ted Neward
What about EBNF? That's pretty standardized, no? Ted Neward http://www.javageeks.com/~tneward On Sun, 21 Nov 1999, Michael Emmel wrote: > Vincent Risi wrote: > > > Andreas Rueckert wrote: > > > > > Hi! > > > > > > On Thu, 18 Nov 1999 Paul Mclachlan wrote: > > > > > > The next problem occured

Re: [Partially OT] A Java parser - part 2

1999-11-21 Thread Michael Emmel
Vincent Risi wrote: > Andreas Rueckert wrote: > > > Hi! > > > > On Thu, 18 Nov 1999 Paul Mclachlan wrote: > > > > The next problem occured when I wanted 2 parsers to use the same base classes > > for the AST. Never managed to do that, and I couldn't patch JavaCC, since there > > were no sources a

Re: [Partially OT] A Java parser - part 2

1999-11-21 Thread Vincent Risi
Andreas Rueckert wrote: > Hi! > > On Thu, 18 Nov 1999 Paul Mclachlan wrote: > > The next problem occured when I wanted 2 parsers to use the same base classes > for the AST. Never managed to do that, and I couldn't patch JavaCC, since there > were no sources available. TLA's are fine if you kno

Re: [Partially OT] A Java parser - part 2

1999-11-20 Thread Andreas Rueckert
Hi! On Fri, 19 Nov 1999 Louis Tribble wrote: >| You may use the Software to generate software program(s) ("Developed >| Programs"). Sun claims no rights in or to the Developed Programs. > >Note especially the last sentence. So you changed your license? I remember that Sreeni said on the

Re: A Java parser

1999-11-20 Thread Daniel Barclay
> From: Kontorotsui <[EMAIL PROTECTED]> > > > Suppose I want to do a tool that parses the java code and modifies it. > > What do you advice me to use? Are there java parsers for Linux? > If the answer is negative, what can I use? Perl (*groan*)? Someone has a tool called iDoc (I think) that

Re: A Java parser

1999-11-17 Thread Nathan Meyers
It sounds like you want to parse Java source code. One good place to look is the Kopi compiler; it's GPL and written in Java. http://www.dms.at/kopi/index.html There are also Java parsers written for Sun's JavaCC (Java Compiler Compiler). And if you're looking for something in C++, there ar

Re: A Java parser

1999-11-17 Thread Paolo Ciccone
On Wed, Nov 17, 1999 at 06:08:54PM +0100, Kontorotsui wrote: > > Suppose I want to do a tool that parses the java code and modifies it. > > What do you advice me to use? Are there java parsers for Linux? > If the answer is negative, what can I use? Perl (*groan*)? Take a look at ANTLR (http:/

Re: A Java parser

1999-11-17 Thread schen
On Wed, 17 Nov 1999, Kontorotsui wrote: > Suppose I want to do a tool that parses the java code and modifies it. > > What do you advice me to use? Are there java parsers for Linux? > If the answer is negative, what can I use? Perl (*groan*)? www.antlr.org is a Java parser/lexe

Re: A Java parser

1999-11-17 Thread Louis Tribble
Kontorotsui wrote: > > Suppose I want to do a tool that parses the java code and modifies it. > > What do you advice me to use? Are there java parsers for Linux? > If the answer is negative, what can I use? Perl (*groan*)? JavaCC is a free parser generator written in Java which generates Java c

Re: A Java parser

1999-11-17 Thread Dustin Lang
Hi, > Suppose I want to do a tool that parses the java code and modifies it. You could take a look at Jikes. It's open source, and I've heard of people using Jikes to parse code and then do something instead of compiling it. Of course, it's written in C++, so if you want to write your parser

A Java parser

1999-11-17 Thread Kontorotsui
Suppose I want to do a tool that parses the java code and modifies it. What do you advice me to use? Are there java parsers for Linux? If the answer is negative, what can I use? Perl (*groan*)? --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - It

Re: [Partially OT] A Java parser - part 2

1999-01-17 Thread Louis Tribble
Andreas Rueckert wrote: > I've used JJTree a while ago and had some problems. It started with the simple > fact, that the Java grammar and all derived work was copyrighted by Metamata, > so I couldn't include it in my work. Make sure this copyright has changed, if > you want to share your work. J

Re: [Partially OT] A Java parser - part 2

1999-01-17 Thread Michael Emmel
Andreas Rueckert wrote: > Hi! > > On Thu, 18 Nov 1999 Paul Mclachlan wrote: > > > > >Having said that, if I wanted to do something like this, I would use > >JavaCC, or, specifically, the "jjtree" tool in JavaCC. jjtree will > >automatically parse the file into an OO structure ready for mani

Re: [Partially OT] A Java parser - part 2

1999-01-17 Thread Andreas Rueckert
Hi! On Thu, 18 Nov 1999 Paul Mclachlan wrote: >Having said that, if I wanted to do something like this, I would use >JavaCC, or, specifically, the "jjtree" tool in JavaCC. jjtree will >automatically parse the file into an OO structure ready for manipulation. >(ie, you might set it up to c

Re: [Partially OT] A Java parser - part 2

1999-01-16 Thread Ulli Kortenkamp
> "Andrea" == Kontorotsui <[EMAIL PROTECTED]> writes: Andrea> What I want to do is a tool that "flattens" the class Andrea> hierachy to improve performance. Try JAX (from http://www.alphaworks.ibm.com). It does exactly what you want. Unfortunately, the JAX project is no longer su

Re: [Partially OT] A Java parser - part 2

1999-01-16 Thread Michael Emmel
Kontorotsui wrote: > Hello, > first of all many thanks to all the people who kindly answered. > > I've collected many different advices on Java parsers, so maybe it is wiser to > explain my purpose. > I noticed that java performance decreases dramatically as more and more classes > and ob

Re: [Partially OT] A Java parser - part 2

1999-01-16 Thread Paul Mclachlan
At 18:43 11 Nov 1999 +0100, Kontorotsui wrote: > What I want to do is a tool that "flattens" the class hierachy to improve > performance. In this way I'll be able to write properly structured code but the > tool will cut away performance-wise useless classes and method before I compile. > I know

[Partially OT] A Java parser - part 2

1999-01-16 Thread Kontorotsui
Hello, first of all many thanks to all the people who kindly answered. I've collected many different advices on Java parsers, so maybe it is wiser to explain my purpose. I noticed that java performance decreases dramatically as more and more classes and object instances are created. F