← index
cplusplus2x.Examples/C++20/MasterX/src/apps/ats/func_list.cpp
Source: cplusplus2x.Examples/C++20/MasterX/src/apps/ats/func_list.cpp
#include "function.hpp"

namespace token {
    void token_List(const std::string &command, std::vector<lex::Token> &v) {
        for (auto i = interp::lines.begin(); i != interp::lines.end(); ++i) {
            stream << std::dec << i->index << " " << i->text << "\r\n";
        }
        stream << "\r\nProgram contains " << std::dec << interp::lines.size() << " lines of code\r\n";
    }

} // namespace token