Exemplo n.º 1
0
		public void SetSource(IList<string> source)
		{
			this.buffer = ScanBuff.GetBuffer(source);
			this.code = '\n'; // to initialize yyline, yycol and lineStart
			this.lNum = 0;
			GetCode();
		}
Exemplo n.º 2
0
 public void SetSource(Stream source, int fallbackCodePage)
 {
     this.buffer = ScanBuff.GetBuffer(source, fallbackCodePage);
     this.lNum = 0;
     this.code = '\n'; // to initialize yyline, yycol and lineStart
     GetCode();
 }
Exemplo n.º 3
0
		public void SetSource(string source, int offset)
		{
			this.buffer = ScanBuff.GetBuffer(source);
			this.buffer.Pos = offset;
			this.lNum = 0;
			this.code = '\n'; // to initialize yyline, yycol and lineStart
			GetCode();
		}
Exemplo n.º 4
0
		void RestoreBuffCtx(BufferContext value)
		{
			this.buffer = value.buffSv;
			this.code = value.chrSv;
			this.cCol = value.cColSv;
			this.lNum = value.lNumSv;
		}
Exemplo n.º 5
0
 public void SetSource(System.IO.Stream source)
 {
     this.buffer = new BuildBuffer(source);
     code        = buffer.Read();
 }
Exemplo n.º 6
0
 public void SetSource(Stream source)
 {
     buffer = new BuildBuffer(source);
     code   = buffer.Read();
 }
Exemplo n.º 7
0
 public void SetSource(System.IO.Stream source)
 {
     this.buffer = new BuildBuffer(source);
     code = buffer.Read();
 }