Pegmatite
|
A range within input. More...
#include <parser.hh>
Public Member Functions | |
InputRange () | |
empty constructor. | |
InputRange (const ParserPosition &b, const ParserPosition &e) | |
constructor.bbb More... | |
Input::iterator | begin () const |
Iterator to the start of the input range. | |
Input::iterator | end () const |
Iterator to the end of the input range. | |
std::string | str () const |
Convert this range to a std::string. | |
Public Attributes | |
ParserPosition | start |
begin position. | |
ParserPosition | finish |
end position. | |
A range within input.
This is passed to construct()
methods for AST classes and allows terminals to record the source location.
pegmatite::InputRange::InputRange | ( | const ParserPosition & | b, |
const ParserPosition & | e | ||
) |
constructor.bbb
b | begin position. |
e | end position. |