public Token RealCompleteBlockComment() { //Console.WriteLine("Starting block comment from "+this.Value); Token tok = this.RealNext(); while (!tok.IsEnd() && !tok.IsBlockCommentEnd()) { tok = tok.RealNext(); } if (tok.IsEnd()) { Console.Write("Block comment not finished?\n"); return(tok); } Tokenizer.SetUnimportantRange(this, tok.RealNext()); //Console.WriteLine("Ending block comment at " + tok.Value+tok.RealNext().Value+tok.RealNext().RealNext().Value); return(tok.RealNext().RealNext()); }
public bool IsArrayStart() { if (!(IsLeft() && Next() != null && Next().IsRight())) { return(false); } for (Token n = RealNext(); !n.IsRight(); n = n.RealNext()) { if (n.IsLineCommentStart()) { continue; } if (n.IsBlockCommentStart()) { continue; } if (n.IsBlockCommentEnd()) { continue; } return(false); } return(true); }