Struct StrLit¶
- Defined in File ASTNode.h
Inheritance Relationships¶
Base Type¶
public AST::Literal< std::string >(Template Struct Literal)
Struct Documentation¶
-
struct
StrLit: public AST::Literal<std::string>¶ Public Functions
-
StrLit(const char *v)¶
-
void
print_original_src(unsigned int indent_depth = 0)¶
-
std::string
generate_code(CodeGen::Settings &settings, unsigned indent_lvl, bool is_lhs) const¶ Generates the code to create a string literal. It relies on the standardized literal generation method.
- Parameters
settings: Code generator settingindent_lvl: Level of indention
-