/// <summary> /// Determines whether the specified <paramref name="expected"/> token exists at the specified location, and if /// so, advances <see cref="_ix"/> to after it; otherwise, <see cref="_ix"/> is not modified.</summary> protected bool token(string expected, out SucoToken token) { token = getToken(); if (_source.Substring(token.StartIndex, token.EndIndex - token.StartIndex) != expected) { return(false); } _ix = token.EndIndex; return(true); }
public SucoParseException(string message, SucoToken tok, params SucoParseExceptionHighlight[] highlights) : this(message, null, tok.StartIndex, tok.EndIndex, highlights) { }