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

            return(TokensToString(tokensBlock));
        }