public ITokenList Tokenize() { var tokens = new TokenList() { new Token(TokenType.Prefix, ":") }; tokens.Concat(Value.Tokenize()); return(tokens); }
public ITokenList Tokenize() { var tokens = new TokenList() { new Token(TokenType.Parenthesis, "(") }; foreach (var node in this) { tokens.Concat(node.Tokenize()); } tokens.Add(new Token(TokenType.Parenthesis, ")")); return(tokens); }