From b92db337bf7cbe2ea0564be6c63c336d2bcd4567 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 8 Nov 2017 11:37:25 -0500 Subject: Added quote token This token wraps the inner token in two provided delimiters. --- lib/token.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/token.h') diff --git a/lib/token.h b/lib/token.h index 0bbe79a..ae7bf96 100644 --- a/lib/token.h +++ b/lib/token.h @@ -116,6 +116,7 @@ namespace verbly { static token punctuation(std::string param, token inner); static token indefiniteArticle(token inner); static token capitalize(casing param, token inner); + static token quote(std::string open, std::string close, token inner); token& getInnerToken(); const token& getInnerToken() const; @@ -131,12 +132,14 @@ namespace verbly { separator, punctuation, indefinite_article, - capitalize + capitalize, + quote }; token( transform_type type, - std::string param, + std::string param1, + std::string param2, token inner); token( @@ -156,6 +159,7 @@ namespace verbly { struct { transform_type type_; std::string strParam_; + std::string strParam2_; casing casingParam_; std::unique_ptr inner_; } transform_; -- cgit 1.4.1