7 #include "ILPushLexer.hh"
8 #include "APushParser.hh"
9 #include "TDictionary.hh"
11 ILPushLexer::ILPushLexer(ALogger& l, APushParser& p, TDictionary& d) : LPushLexer(l, p), dictionary(d)
17 ILPushLexer::complete()
21 std::list<std::string> complete_list;
22 std::string new_buffer = dictionary.complete(buffer, complete_list);
24 if (!complete_list.size())
27 logger.warning("wrong prefix: nothing to complete");
29 else if (complete_list.size() == 1)
31 // good! we have found the macro
36 // we have more than one matching macro
37 logger.warning("prefix not sufficient");