internal static IEnumerable<Tokens.Base> Scan(ILoader loader, bool dispose) { while (loader.CheckToken()) yield return loader.GetToken(); if (dispose) loader.Dispose(); }