|
| | LexerCursor ()=default |
| | LexerCursor (const LexerCursor &)=default |
| LexerCursor & | operator= (const LexerCursor &)=default |
| | LexerCursor (LexerCursor &&)=default |
| bool | isAt (int64_t Line, int64_t Column, std::size_t Offset) const |
| | Check if the point is at the given position.
|
| int64_t | line () const |
| | Line number, starting from 0.
|
| int64_t | column () const |
| | Column number, starting from 0.
|
| Position | position () const |
| | Position in the source file. (Line + Column).
|
| std::size_t | offset () const |
| | Offset in the source file, starting from 0.
|
A point in the source file.
This class is used to represent a point in the source file. And it shall be constructed by Lexer, to keep Line & Column information correct.
- See also
- Lexer::consume(std::size_t)
Definition at line 57 of file Range.h.