Fabrique

A build language for complex systems

 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
fabrique::Token Class Reference

A token obtained from the Lexer. More...

#include <Token.h>

Inheritance diagram for fabrique::Token:
fabrique::HasSource fabrique::Printable

Public Member Functions

 Token (const std::string &, const SourceRange &)
 
 Token (const char *begin, size_t len, const SourceRange &)
 
size_t length () const
 
 operator std::string () const
 
std::string str () const override
 
void PrettyPrint (Bytestream &, size_t indent=0) const override
 Print a human-readable representation to an output stream and return that output stream.
 
- Public Member Functions inherited from fabrique::HasSource
 HasSource (const SourceRange &src)
 
const SourceRangesource () const
 
- Public Member Functions inherited from fabrique::Printable
 Printable (const Printable &)
 
Printableoperator= (const Printable &)
 

Detailed Description

A token obtained from the Lexer.

Definition at line 44 of file Token.h.


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