Fabrique

A build language for complex systems

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

A string value enclosed by single or double quotes. More...

#include <literals.h>

Inheritance diagram for fabrique::ast::StringLiteral:
fabrique::ast::Literal< std::string > fabrique::ast::Expression fabrique::ast::Node fabrique::Typed fabrique::HasSource fabrique::Printable fabrique::Visitable< Visitor > fabrique::Uncopyable

Public Member Functions

 StringLiteral (const std::string &s, const Type &ty, const SourceRange &loc)
 
std::string str () const
 
virtual dag::ValuePtr evaluate (EvalContext &) const override
 
virtual void PrettyPrint (Bytestream &, size_t indent=0) const override
 Print a human-readable representation to an output stream and return that output stream.
 
virtual void Accept (Visitor &) const
 
- Public Member Functions inherited from fabrique::ast::Literal< std::string >
const std::string & value () const
 
- 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 &)
 
- Public Member Functions inherited from fabrique::Visitable< Visitor >
virtual void Accept (Visitor &) const =0
 
- Public Member Functions inherited from fabrique::Typed
 Typed (const Type &t)
 
virtual const Typetype () const
 

Additional Inherited Members

- Protected Member Functions inherited from fabrique::ast::Literal< std::string >
 Literal (const std::string &value, const Type &ty, const SourceRange &loc)
 
- Protected Member Functions inherited from fabrique::ast::Expression
 Expression (const Type &t, const SourceRange &src)
 
- Protected Member Functions inherited from fabrique::ast::Node
 Node (const SourceRange &src)
 

Detailed Description

A string value enclosed by single or double quotes.

Definition at line 98 of file literals.h.


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