Represents a range in a source file, from a start position to an end position.
More...
#include <ParserPosition.h>
Represents a range in a source file, from a start position to an end position.
◆ ParserLocation() [1/3]
Construct location from 'begin' to 'end' positions.
- Parameters
-
| b | begin position |
| e | end position |
◆ ParserLocation() [2/3]
Construct a 0-width location at position 'p'.
- Parameters
-
◆ ParserLocation() [3/3]
| ParserLocation::ParserLocation |
( |
const std::string * |
f, |
|
|
uint32_t |
l = 0, |
|
|
uint32_t |
c = 0 |
|
) |
| |
|
inlineexplicit |
Construct a 0-width location at file 'f', line 'l', column 'c'.
- Parameters
-
| f | filename |
| l | line number |
| c | column number |
◆ columns()
| void ParserLocation::columns |
( |
uint32_t |
count = 1 | ) |
|
|
inline |
◆ initialize()
| void ParserLocation::initialize |
( |
const std::string * |
f = nullptr, |
|
|
uint32_t |
l = 0, |
|
|
uint32_t |
c = 0 |
|
) |
| |
|
inline |
◆ lines()
| void ParserLocation::lines |
( |
uint32_t |
count = 1 | ) |
|
|
inline |
◆ step()
| void ParserLocation::step |
( |
| ) |
|
|
inline |
Reset initial position to the end position.
◆ begin
◆ end
The documentation for this class was generated from the following file: