Пример #1
0
 /// <summary>
 /// 重置分析器
 /// </summary>
 public void Reset()
 {
     this._flagMode    = FlagMode.None;
     this._line        = 1;
     this._column      = 1;
     this._kind        = TokenKind.Text;
     this._startColumn = 1;
     this._startLine   = 1;
     this._scanner     = new CharScanner(this._document);
     this._collection  = new List <Token>();
     this._pos         = new Stack <String>();
 }
Пример #2
0
 /// <summary>
 /// 重置分析器
 /// </summary>
 public void Reset()
 {
     this._flagMode = FlagMode.None;
     this._line = 1;
     this._column = 1;
     this._kind = TokenKind.Text;
     this._startColumn = 1;
     this._startLine = 1;
     this._scanner = new CharScanner(this._document);
     this._collection = new List<Token>();
     this._pos = new Stack<String>();
 }
Пример #3
0
 /// <summary>
 /// 重置分析器
 /// </summary>
 public void Reset()
 {
     this.mode = LexerMode.None;
     this.line = 1;
     this.column = 1;
     this.kind = TokenKind.Text;
     this.startColumn = 1;
     this.startLine = 1;
     this.scanner = new CharScanner(this.document);
     this.collection = new List<Token>();
     this.pos = new Stack<String>();
 }
Пример #4
0
 /// <summary>
 /// 重置分析器
 /// </summary>
 public void Reset()
 {
     this.mode        = LexerMode.None;
     this.line        = 1;
     this.column      = 1;
     this.kind        = TokenKind.Text;
     this.startColumn = 1;
     this.startLine   = 1;
     this.scanner     = new CharScanner(this.document);
     this.collection  = new List <Token>();
     this.pos         = new Stack <String>();
 }