summary refs log tree commit diff stats
path: root/lib/token.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/token.cpp')
-rw-r--r--lib/token.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/token.cpp b/lib/token.cpp index d2024b8..735aa7e 100644 --- a/lib/token.cpp +++ b/lib/token.cpp
@@ -261,7 +261,7 @@ namespace verbly {
261 { 261 {
262 switch (type_) 262 switch (type_)
263 { 263 {
264 case type::word: return word_.word_.getInflections(word_.category_).front(); 264 case type::word: return word_.word_.getInflections(word_.category_).front().getText();
265 case type::literal: return literal_; 265 case type::literal: return literal_;
266 case type::part: throw std::domain_error("Cannot compile incomplete token"); 266 case type::part: throw std::domain_error("Cannot compile incomplete token");
267 case type::fillin: throw std::domain_error("Cannot compile incomplete token"); 267 case type::fillin: throw std::domain_error("Cannot compile incomplete token");