byte_buffer.sa
上传用户:afrynkmhm
上传日期:2007-01-06
资源大小:1262k
文件大小:1k
- (*
- ANTLR Translator Generator
- Project led by Terence Parr at http://www.jGuru.com
- Software rights: http://www.antlr.org/RIGHTS.html
-
- $Id: //depot/code/org.antlr/release/antlr-2.7.0/lib/sather/Antlr/byte_buffer.sa#1 $
- *)
- class ANTLR_BYTE_BUFFER is
- include ANTLR_INPUT_BUFFER;
- create( in : $ISTREAM ) : SAME pre ~void(in) is
- res : SAME := new;
- res.input := in;
- res.init;
- return res;
- end;
- fill ( amount : INT ) is
- sync_consume;
- loop while!( queue.num_entries < amount + marker_offset );
- queue.append( input.get );
- end;
- end;
-
- end;