public SimpleToken WithAppendedText(string text) { SimpleToken result = this; result.Value += text; return(result); }
public void HandleUnexpectedToken(SimpleToken token) { GenericWarnings.Add($"{_PeripheralHeaderFile}:{token.Line + 1}: unexpected '{token.Value}'"); }
public UnexpectedNonNumberException(SimpleToken token) : base("Expected a number, found " + token.Value) { Token = token; }
private void ReportUnexpectedToken(SimpleToken token) { _ReportWriter.HandleUnexpectedToken(token); }