You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mario Alejandro Montoya C." <ma...@hotmail.com> on 2005/01/29 19:22:54 UTC
Porting to Delphi: Problem with JavaCC Code...
This is my first post...
I'm porting from DotLucene to Delphi the Lucene engine... everything is
going well except the files marked like a JavaCC generated code. I
understand this is machine generated code, so, i think is hard to debug and
test if the port was ok...
- Exist a JavaCC like generator for delphi that produce the same results?
- Can replace this code with Regular Expressions ? By the way, why is not
code with regular expressions in first place? Any issue with this or is
simply a preference? Why from 1.2-1.3 was change the more clear code in
favor of JavaCC?
- Exist a standar way to test if a port was sucesfully, ie, produce equal
results?
Thanks for your time...
Mario Alejandro M.
_________________________________________________________________
¿Cuánto vale tu auto? Tips para mantener tu carro. ¡De todo en MSN Latino
Autos! http://latino.msn.com/autos/
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org
Re: Porting to Delphi: Problem with JavaCC Code...
Posted by Daniel Naber <da...@t-online.de>.
On Saturday 29 January 2005 19:22, Mario Alejandro Montoya C. wrote:
> - Can replace this code with Regular Expressions ?
No, because regular expressions cannot parse nested expressions like this:
(a AND (b or c))
> - Exist a standar way to test if a port was sucesfully, ie, produce
> equal results?
There are unit tests in the src/test directory for QueryParser and
StandardTokenizer.
Regards
Daniel
--
http://www.danielnaber.de
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org