|
FE 0.6.1
A header-only C++ library for writing frontends
|
#include <fe/loc.h>
Public Member Functions | |
| Loc ()=default | |
| Creates an invalid Location. | |
| Loc (const std::filesystem::path *path, Pos begin, Pos finis) | |
| Loc (const std::filesystem::path *file, Pos pos) | |
| Loc (Pos begin, Pos finis) | |
| Loc (Pos pos) | |
| Loc | anew_begin () const |
| Loc | anew_finis () const |
| Loc | operator+ (Pos pos) const |
| Loc | operator+ (Loc loc) const |
| operator bool () const | |
| Is a valid Location? | |
| bool | operator== (Loc other) const |
| void | dump () const |
Public Attributes | |
| const std::filesystem::path * | path = {} |
| Pos | begin = {} |
| Pos | finis = {} |
| It's called finis because it refers to the last character within this Location. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, Loc loc) |
| fe/loc.h only declares the stream output and dump helpers. | |
Location in a File.
It's only two machine words on a 64 bit arch, so pass around as value.
|
default |
Creates an invalid Location.
Referenced by anew_begin(), anew_finis(), Loc(), Loc(), Loc(), operator+(), operator+(), operator<<, and operator==().
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
friend |
| Pos fe::Loc::begin = {} |
Definition at line 58 of file loc.h.
Referenced by anew_begin(), Loc(), Loc(), operator bool(), operator+(), operator+(), operator<<, operator==(), and fe::Parser< Tok, Tag, K, S >::tracker().
| Pos fe::Loc::finis = {} |
It's called finis because it refers to the last character within this Location.
In the STL the word end refers to the position of something that is one element past the end.
Definition at line 59 of file loc.h.
Referenced by anew_finis(), Loc(), Loc(), operator+(), operator<<, and operator==().
| const std::filesystem::path* fe::Loc::path = {} |
Definition at line 57 of file loc.h.
Referenced by anew_begin(), anew_finis(), Loc(), operator+(), operator+(), operator<<, and operator==().