Beispiel #1
0
 private static void ThrowAmbiguousTokenException(ILocation location, IEnumerable<ITokenRecognizer> recognized)
 {
     string names = recognized.Select(x => x.TokenName).Aggregate((agg, x) => $"{agg}, {x}");
     throw new AmbiguousTokenException($"Ambiguous token ({names}) at: {location.GetLocationString()}");
 }