AsmGrader 0.0.0
Loading...
Searching...
No Matches
asmgrader::exprs::ExpressionRepr::Repr Struct Reference

#include <requirement.hpp>

Public Types

enum class  Type { String , Integer , Floating , Other }
 A heuristic of what type the value is. May not always be perfectly accurate. More...
 
using TokenStream = std::vector<asmgrader::inspection::Token>
 

Public Attributes

stringize::StringizeResult repr
 Representation of the expression as by repr
 
stringize::StringizeResult str
 Representation of the expression's value as by str
 
std::string_view raw_str
 Original string (should be as generated by the # prepocessor operator)
 
TokenStream raw_str_tokens
 Tokenized raw_str see Tokenizer.
 
boost::typeindex::type_index type_index
 This field will probably never be used, but it might be nice later for debug info.
 
Type kind
 
bool is_literal
 Whether the expression is a literal value, or is composed of solely literal values. Examples: 123 (1 + 2) ^ 5.
 

Member Typedef Documentation

◆ TokenStream

Member Enumeration Documentation

◆ Type

A heuristic of what type the value is. May not always be perfectly accurate.

Enumerator
String 
Integer 
Floating 
Other 

Member Data Documentation

◆ is_literal

bool asmgrader::exprs::ExpressionRepr::Repr::is_literal

Whether the expression is a literal value, or is composed of solely literal values. Examples: 123 (1 + 2) ^ 5.

◆ kind

Type asmgrader::exprs::ExpressionRepr::Repr::kind

◆ raw_str

std::string_view asmgrader::exprs::ExpressionRepr::Repr::raw_str

Original string (should be as generated by the # prepocessor operator)

◆ raw_str_tokens

TokenStream asmgrader::exprs::ExpressionRepr::Repr::raw_str_tokens

Tokenized raw_str see Tokenizer.

◆ repr

stringize::StringizeResult asmgrader::exprs::ExpressionRepr::Repr::repr

Representation of the expression as by repr

◆ str

stringize::StringizeResult asmgrader::exprs::ExpressionRepr::Repr::str

Representation of the expression's value as by str

◆ type_index

boost::typeindex::type_index asmgrader::exprs::ExpressionRepr::Repr::type_index

This field will probably never be used, but it might be nice later for debug info.


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