btool
A parser/converter/transpiler for .bib files
ParserContext.hpp
Go to the documentation of this file.
1 #ifndef BIBPARSER_PARSERCONTEXT_HPP
2 #define BIBPARSER_PARSERCONTEXT_HPP
3 
4 #include <cstddef>
5 #include <string>
6 
10 struct ParserContext {
11  std::string filename{};
12  std::size_t line{1U};
13  std::size_t column{0U};
14 
15  explicit ParserContext(std::string filename);
16 };
17 
18 #endif
ParserContext::ParserContext
ParserContext(std::string filename)
Definition: ParserContext.cpp:8
ParserContext
Definition: ParserContext.hpp:10
ParserContext::column
std::size_t column
the current column the parser is parsing
Definition: ParserContext.hpp:13
ParserContext::line
std::size_t line
the current line the parser is parsing
Definition: ParserContext.hpp:12
ParserContext::filename
std::string filename
the filename of the currently parsed-file
Definition: ParserContext.hpp:11