blob: fa64344432be18f87cd7dc352899358514f0ab45 [file] [log] [blame]
Václav Kubernát195eeea2018-05-18 13:52:36 +02001/*
2 * Copyright (C) 2018 CESNET, https://photonics.cesnet.cz/
3 * Copyright (C) 2018 FIT CVUT, https://fit.cvut.cz/
4 *
5 * Written by Václav Kubernát <kubervac@fit.cvut.cz>
6 *
7*/
8
9#include "parser_context.hpp"
Václav Kubernát48fc3832018-05-28 14:21:22 +020010ParserContext::ParserContext(const Schema& schema, const path_ curDir)
11 : m_schema(schema)
Václav Kubernát195eeea2018-05-18 13:52:36 +020012{
Václav Kubernát2a9e1792018-05-28 12:53:48 +020013 m_curPath = curDir;
Václav Kubernát744f57f2018-06-29 22:46:26 +020014
15 if (!m_curPath.m_nodes.empty() && m_curPath.m_nodes.at(0).m_prefix)
16 m_topLevelModulePresent = true;
Václav Kubernát195eeea2018-05-18 13:52:36 +020017}