chomik 0.2.1
experimental and minimalistic programming language

My name is Pawel Biernacki.
I am a software engineer.
This site is my hobby project.

Loading...
Searching...
No Matches
chomik::assignment_source_literal_value Class Reference

#include <chomik.h>

Inheritance diagram for chomik::assignment_source_literal_value:
Collaboration diagram for chomik::assignment_source_literal_value:

Public Member Functions

 assignment_source_literal_value (std::unique_ptr< generic_literal > &&v, variable_with_value::actual_memory_representation_type t)
 
virtual void report (std::ostream &s) const override
 
virtual variable_with_value::actual_memory_representation_type get_actual_memory_representation_type () const override
 
virtual int get_actual_integer_value (const machine &m, const basic_generator &g) const override
 
virtual double get_actual_float_value (const machine &m, const basic_generator &g) const override
 
virtual std::string get_actual_string_value (const machine &m, const basic_generator &g) const override
 
virtual std::string get_actual_identifier_value (const machine &m, const basic_generator &g) const override
 
virtual void get_actual_code_value (const machine &m, const basic_generator &g, code &target) const
 
- Public Member Functions inherited from chomik::assignment_source
virtual ~assignment_source ()
 

Detailed Description

This class is used as an assignment source when a literal of type integer, float or any enum is used. It might also be used for code without placeholders. Maybe it's cleaner not to use it for code at all.

Constructor & Destructor Documentation

◆ assignment_source_literal_value()

chomik::assignment_source_literal_value::assignment_source_literal_value ( std::unique_ptr< generic_literal > && v,
variable_with_value::actual_memory_representation_type t )
inline

Member Function Documentation

◆ get_actual_code_value()

virtual void chomik::assignment_source_literal_value::get_actual_code_value ( const machine & m,
const basic_generator & g,
code & target ) const
virtual

Reimplemented from chomik::assignment_source.

◆ get_actual_float_value()

virtual double chomik::assignment_source_literal_value::get_actual_float_value ( const machine & m,
const basic_generator & g ) const
inlineoverridevirtual

Reimplemented from chomik::assignment_source.

◆ get_actual_identifier_value()

virtual std::string chomik::assignment_source_literal_value::get_actual_identifier_value ( const machine & m,
const basic_generator & g ) const
inlineoverridevirtual

Reimplemented from chomik::assignment_source.

◆ get_actual_integer_value()

virtual int chomik::assignment_source_literal_value::get_actual_integer_value ( const machine & m,
const basic_generator & g ) const
inlineoverridevirtual

Reimplemented from chomik::assignment_source.

◆ get_actual_memory_representation_type()

virtual variable_with_value::actual_memory_representation_type chomik::assignment_source_literal_value::get_actual_memory_representation_type ( ) const
inlineoverridevirtual

Reimplemented from chomik::assignment_source.

◆ get_actual_string_value()

virtual std::string chomik::assignment_source_literal_value::get_actual_string_value ( const machine & m,
const basic_generator & g ) const
inlineoverridevirtual

Reimplemented from chomik::assignment_source.

◆ report()

virtual void chomik::assignment_source_literal_value::report ( std::ostream & s) const
overridevirtual

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

copyright by Pawel Biernacki

Vantaa 2022