private SqlToken ReadMultilineComment() { var l = _chars.GetLocation(); _chars.Expect('*'); var chars = new List <char>(); while (true) { var c = _chars.GetNext(); if (c == '\0') { _chars.PutBack(c); break; } if (c == '*') { if (_chars.Peek() == '/') { _chars.GetNext(); break; } } chars.Add(c); } var x = new string(chars.ToArray()); return(SqlToken.Comment(x, l)); }
private SqlToken ReadSingleLineComment() { var l = _chars.GetLocation(); _chars.GetNext(); var x = ReadLine(); return(SqlToken.Comment(x, l)); }