iv::Pratt::Value Struct Reference

#include <Pratt.hpp>

Public Member Functions

virtual const ValueToValue () const override
 
- Public Member Functions inherited from iv::Pratt::Expression
virtual ~Expression ()
 
virtual const UnaryToUnary () const
 
virtual const BinaryToBinary () const
 

Public Attributes

Lex::Token token
 
std::string token_str
 
- Public Attributes inherited from iv::Pratt::Expression
int line
 
int column
 
int name
 

Detailed Description

Definition at line 53 of file Pratt.hpp.

Member Function Documentation

◆ ToValue()

virtual const Value* iv::Pratt::Value::ToValue ( ) const
inlineoverridevirtual

Reimplemented from iv::Pratt::Expression.

Definition at line 62 of file Pratt.hpp.

Member Data Documentation

◆ token

Lex::Token iv::Pratt::Value::token

Token can be: Keyword, String, Variable, Integer or Double. Use atoi on token_str to get Integer value, use atof on token_str to get Double value.

Definition at line 59 of file Pratt.hpp.

◆ token_str

std::string iv::Pratt::Value::token_str

Definition at line 60 of file Pratt.hpp.


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