コード例 #1
0
ファイル: Lexer.cs プロジェクト: lucifersam1982/zest
 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()}");
 }