If Amazon used this Besos wouldn't have banned PowerPoint.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
besos-loves-slides/parser.cpp

24 lines
497 B

#include <fmt/core.h>
#include <numeric>
#include <cassert>
#include <fstream>
#include <iostream>
#include "parser.hpp"
#include "dbc.hpp"
#include "./md_parser.cpp"
std::string load_file(const std::string& md_file) {
std::ifstream in_file{md_file, std::ios::binary};
dbc::check(bool(in_file), fmt::format("failed to load {}", md_file));
return std::string(std::istreambuf_iterator<char>(in_file), std::istreambuf_iterator<char>());
}
Parser::Parser()
{
}
void Parser::finalize() {
}