1#include "FilenameObserver.hpp"
5FilenameObserver::FilenameObserver() : parser_(NULL), lexer_(NULL) {}
6void FilenameObserver::setParser(
MDParser* parser) {parser_ = parser;}
7void FilenameObserver::setLexer(
MDLexer* lexer) {lexer_ = lexer;}
8void FilenameObserver::notify(
const std::string& filename) {
10 lexer_->setFilename(filename);
12 parser_->setFilename(filename);