[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Line-by-line evaluation or all at once?
On Wednesday, 18. April 2001 21:31, you wrote:
> The parser object can than be reused by providing a new Lexer with new
> method parser.setLexer(lexer)
BTW: Consequently the Lexer should also be reusable. Therefore I added
// 19.04.2001 ml start
public void reset(PushbackReader in) {
this.in = in;
state = State.$2$;
text.setLength(0);
}
// 19.04.2001 ml stop
to "lexer.txt"
Marco
--
Marco Ladermann
dpa, Deutsche Presse-Agentur GmbH
ladermann@hbg.dpa.de (PGP-Schlüssel auf Anfrage)
Tel. +49 40 4113 2414 Fax +49 40 4113 2479