01: package antlr;
02:
03: /* ANTLR Translator Generator
04: * Project led by Terence Parr at http://www.cs.usfca.edu
05: * Software rights: http://www.antlr.org/license.html
06: */
07:
08: /**A Stream of characters fed to the lexer from a InputStream that can
09: * be rewound via mark()/rewind() methods.
10: * <p>
11: * A dynamic array is used to buffer up all the input characters. Normally,
12: * "k" characters are stored in the buffer. More characters may be stored during
13: * guess mode (testing syntactic predicate), or when LT(i>k) is referenced.
14: * Consumption of characters is deferred. In other words, reading the next
15: * character is not done by conume(), but deferred until needed by LA or LT.
16: * <p>
17: *
18: * @see antlr.CharQueue
19: */
20:
21: import java.io.Reader;
22:
23: // SAS: Move most functionality into InputBuffer -- just the file-specific
24: // stuff is in here
25:
26: public class CharBuffer extends InputBuffer {
27: /** Create a character buffer */
28: public CharBuffer(Reader input) { // SAS: for proper text i/o
29: super(input);
30: }
31: }
|