From 8b1333d0e6e2b9a5014bdbff2987d899f5413fee Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 16 Mar 2016 21:35:35 -0400 Subject: Added word derivational relationships (kind of eh at the moment) and moved verbly into its own directory --- verbly/token.cpp | 53 ----------------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 verbly/token.cpp (limited to 'verbly/token.cpp') diff --git a/verbly/token.cpp b/verbly/token.cpp deleted file mode 100644 index aa8f50e..0000000 --- a/verbly/token.cpp +++ /dev/null @@ -1,53 +0,0 @@ -#include "verbly.h" - -namespace verbly { - - token::token(token::type _type) : _type(_type) - { - - } - - token::type token::token_type() const - { - return _type; - } - - verb_token::verb_token(const class verb& _verb) : token(token::type::verb), _verb(&_verb) - { - - } - - const class verb& verb_token::verb() const - { - return *_verb; - } - - verb_token& verb_token::inflect(verb_token::inflection infl) - { - _inflection = infl; - return *this; - } - - bool verb_token::complete() const - { - return true; - } - - std::string verb_token::compile() const - { - switch (_inflection) - { - case inflection::infinitive: return _verb->infinitive_form(); - case inflection::past_tense: return _verb->past_tense_form(); - case inflection::past_participle: return _verb->past_participle_form(); - case inflection::ing_form: return _verb->ing_form(); - case inflection::s_form: return _verb->s_form(); - } - } - - token* verb_token::copy() const - { - return new verb_token(*this); - } - -}; -- cgit 1.4.1