public static List <Token> GetMatchResultBlockTokens(List <Token> tokens, AbstractPatternMatch matchResult) { return(tokens.GetRange(matchResult.Start + 1, matchResult.Length - 2)); }
public static string MatchToString(List <Token> tokens, AbstractPatternMatch matchResult) { var tokensBlock = GetMatchResultTokens(tokens, matchResult); return(TokensToString(tokensBlock)); }