#include "driver.hpp"

#include "parser.hpp"

driver::driver() { }

int driver::parse(const std::string& f) {
    file = f;
    location.initialize(&file);

    // scan_begin and scan_end are defined in tokens.l
    scan_begin();

    yy::parser parse(*this);

    // int res = 
    parse();

    scan_end();

    // return res;
    return 0;
}