Pegmatite
Public Member Functions | Public Attributes | List of all members
pegmatite::InputRange Class Reference

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.
 

Detailed Description

A range within input.

This is passed to construct() methods for AST classes and allows terminals to record the source location.

Constructor & Destructor Documentation

pegmatite::InputRange::InputRange ( const ParserPosition b,
const ParserPosition e 
)

constructor.bbb

Parameters
bbegin position.
eend position.

The documentation for this class was generated from the following file: