Juancarlo,

--- Juancarlo Anez <[EMAIL PROTECTED]> wrote:
> Jim,
> 
> > Why not use Antlr (http://www.antlr.org)?  It is public domain and
> uses
> > an LL(k) grammar for both lexing and parsing, which allows for more
> > powerful lexers than those based on regular expressions.
> 
> That's another option (JavaCC is also an LL(k) parser generator).

But if I understand correctly, JavaCC uses regular expressions to
describe the lexer (along with lexer states, which adds additional
capabilities), while Antlr uses a LL(k) grammar for the lexer also, so
for a simple parsing job like this one, you might only need the lexer.

> 
> Using ANTLR would only resolve the propietary-package aspect. What
> about the rest?

Jason raised some good points.  Since I am only in the investigation
stage for a potential project, I will have to consider them before
making a decision.  One of the things I like about JavaCC is that it
generates the complete code for the parser and lexer, while Antlr
requires some helper jars.  Of course, since it is open source, this
isn't a big problem.

On the other hand, if Jason was really serious about developing a
JavaCC clone, Antlr could be used as a tool or as a starting point.

> 
> Juanco

Jim Seach


__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to