01: /*
02: Very Quick Wiki - WikiWikiWeb clone
03: Copyright (C) 2001-2002 Gareth Cronin
04:
05: This program is free software; you can redistribute it and/or modify
06: it under the terms of the latest version of the GNU Lesser General
07: Public License as published by the Free Software Foundation;
08:
09: This program is distributed in the hope that it will be useful,
10: but WITHOUT ANY WARRANTY; without even the implied warranty of
11: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: GNU Lesser General Public License for more details.
13:
14: You should have received a copy of the GNU Lesser General Public License
15: along with this program (gpl.txt); if not, write to the Free Software
16: Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17: */
18: package vqwiki.lex;
19:
20: /**
21: * This interface can be implemented in any way you like, it doesn't have to be for
22: * a JLex generated lexer. As long as the implementing class implements a constructor
23: * that takes a single InputStream or Reader parameter and returns one token at a
24: * time from the yylex() method, it will work.
25: */
26: public interface Lexer {
27: public String yylex() throws java.io.IOException;
28:
29: public void setVirtualWiki(String vWiki);
30: }
|