liblloyal 1.0.0
Composable primitives for llama.cpp inference
Loading...
Searching...
No Matches
minja::ExpressionTemplateToken Struct Reference

#include <minja.hpp>

Inheritance diagram for minja::ExpressionTemplateToken:
minja::TemplateToken

Public Member Functions

 ExpressionTemplateToken (const Location &loc, SpaceHandling pre, SpaceHandling post, std::shared_ptr< Expression > &&e)
 
- Public Member Functions inherited from minja::TemplateToken
 TemplateToken (Type type, const Location &location, SpaceHandling pre, SpaceHandling post)
 
virtual ~TemplateToken ()=default
 

Public Attributes

std::shared_ptr< Expressionexpr
 
- Public Attributes inherited from minja::TemplateToken
Type type
 
Location location
 
SpaceHandling pre_space = SpaceHandling::Keep
 
SpaceHandling post_space = SpaceHandling::Keep
 

Additional Inherited Members

- Public Types inherited from minja::TemplateToken
enum class  Type {
  Text , Expression , If , Else ,
  Elif , EndIf , For , EndFor ,
  Generation , EndGeneration , Set , EndSet ,
  Comment , Macro , EndMacro , Filter ,
  EndFilter , Break , Continue
}
 
- Static Public Member Functions inherited from minja::TemplateToken
static std::string typeToString (Type t)
 

Detailed Description

Definition at line 750 of file minja.hpp.

Constructor & Destructor Documentation

◆ ExpressionTemplateToken()

minja::ExpressionTemplateToken::ExpressionTemplateToken ( const Location loc,
SpaceHandling  pre,
SpaceHandling  post,
std::shared_ptr< Expression > &&  e 
)
inline

Definition at line 752 of file minja.hpp.

Member Data Documentation

◆ expr

std::shared_ptr<Expression> minja::ExpressionTemplateToken::expr

Definition at line 751 of file minja.hpp.


The documentation for this struct was generated from the following file: