32 lines
648 B
C++
32 lines
648 B
C++
#ifndef __TOKENIZE__LOCATION_H
|
|
#define __TOKENIZE__LOCATION_H
|
|
|
|
#include <cstdlib>
|
|
|
|
namespace tokenize
|
|
{
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Location
|
|
//
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
struct Location
|
|
{
|
|
const char *sectionStart = nullptr;
|
|
const char *sectionEnd = nullptr;
|
|
|
|
std::size_t rowStart = -1;
|
|
std::size_t rowEnd = -1;
|
|
|
|
std::size_t columnStart = -1;
|
|
std::size_t columnEnd = -1;
|
|
};
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
}
|
|
|
|
#endif
|