btool
A parser/converter/transpiler for .bib files
ParserContext Struct Reference

#include <ParserContext.hpp>

+ Collaboration diagram for ParserContext:

Public Member Functions

 ParserContext (std::string filename)
 

Public Attributes

std::string filename {}
 the filename of the currently parsed-file More...
 
std::size_t line {1U}
 the current line the parser is parsing More...
 
std::size_t column {0U}
 the current column the parser is parsing More...
 

Detailed Description

Context of a Parser-State

Examples
/github/workspace/test/ParserStateFixtureTest.cpp.

Definition at line 10 of file ParserContext.hpp.

Constructor & Destructor Documentation

◆ ParserContext()

ParserContext::ParserContext ( std::string  filename)
explicit

Constructor.

Parameters
filenamethe filename of the file to parse

Definition at line 8 of file ParserContext.cpp.

References filename.

Member Data Documentation

◆ column

std::size_t ParserContext::column {0U}

the current column the parser is parsing

Definition at line 13 of file ParserContext.hpp.

Referenced by Parser::elementsOf().

◆ filename

std::string ParserContext::filename {}

the filename of the currently parsed-file

Definition at line 11 of file ParserContext.hpp.

Referenced by ParserContext().

◆ line

std::size_t ParserContext::line {1U}

the current line the parser is parsing

Definition at line 12 of file ParserContext.hpp.

Referenced by Parser::elementsOf().


The documentation for this struct was generated from the following files: