36 #ifndef _WOLFRAME_SOURCE_LINE_INFO_HPP_INCLUDED
37 #define _WOLFRAME_SOURCE_LINE_INFO_HPP_INCLUDED
39 #include <boost/shared_ptr.hpp>
70 void update(
const std::string::const_iterator& lastpos,
const std::string::const_iterator& pos);
unsigned int line() const
Get the current line.
Definition: sourceLineInfo.hpp:60
void incrementColumn()
Increment the current column.
Definition: sourceLineInfo.hpp:67
unsigned int m_line
the current line
Definition: sourceLineInfo.hpp:73
SourceLineInfo(const SourceLineInfo &o)
Copy constructor.
Definition: sourceLineInfo.hpp:56
SourceLineInfo(unsigned int line_, unsigned int column_)
Constructor.
Definition: sourceLineInfo.hpp:53
SourceLineInfo()
Default constructor.
Definition: sourceLineInfo.hpp:50
Line information for error messages for parser using STL string iterators as source scanners...
Definition: sourceLineInfo.hpp:46
void update(const std::string::const_iterator &lastpos, const std::string::const_iterator &pos)
Update this line info by scanning the source parsed from 'lastpos' to 'pos', counting lines and chara...
SourceLineInfo getSourceLineInfo(const std::string::const_iterator &start, const std::string::const_iterator &pos)
Get the source line info by scanning the source parsed from 'start' to 'pos', counting lines and char...
void incrementLine()
Increment the current line.
Definition: sourceLineInfo.hpp:65
unsigned int column() const
Get the current column.
Definition: sourceLineInfo.hpp:62
unsigned int m_column
the current column
Definition: sourceLineInfo.hpp:74