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::generic_literal_code Class Reference

#include <chomik.h>

Inheritance diagram for chomik::generic_literal_code:
Collaboration diagram for chomik::generic_literal_code:

Public Member Functions

 generic_literal_code (list_of_statements *const l)
 
 generic_literal_code ()
 
 generic_literal_code (const code &c)
 
 generic_literal_code (std::unique_ptr< code > &&c)
 
codeget_code ()
 
virtual void report (std::ostream &s) const override
 
virtual variable_with_value::actual_memory_representation_type get_actual_memory_representation_type (machine &m, basic_generator &g) const override
 
virtual std::string get_actual_text_representation (const machine &m, const basic_generator &g) const override
 
virtual void add_placeholders_to_generator (basic_generator &g) const override
 
virtual void get_actual_code_value (const machine &m, const basic_generator &g, const replacing_policy &p, code &target) const override
 
virtual void get_result_replacing_placeholders (const machine &m, const basic_generator &g, const replacing_policy &p, generic_name &target) const override
 
virtual void get_copy (std::unique_ptr< generic_literal > &target) const
 
virtual void make_copy_with_replacements (const machine &m, const basic_generator &g, const replacing_policy &p, std::unique_ptr< generic_literal > &target) const override
 
virtual bool get_is_code () const override
 
- Public Member Functions inherited from chomik::generic_literal
virtual ~generic_literal ()
 
virtual std::string get_actual_enum_value (const machine &m, const basic_generator &g) const
 
virtual int get_actual_integer_value (const machine &m, const basic_generator &g) const
 
virtual double get_actual_float_value (const machine &m, const basic_generator &g) const
 
virtual std::string get_actual_string_value (const machine &m, const basic_generator &g) const
 

Detailed Description

This class represents a literal of the built-in type code.

Constructor & Destructor Documentation

◆ generic_literal_code() [1/4]

chomik::generic_literal_code::generic_literal_code ( list_of_statements *const l)
inline

This constructor calls code::code which owns the parameter, so it must not be destroyed by the parser!

◆ generic_literal_code() [2/4]

chomik::generic_literal_code::generic_literal_code ( )
inline

◆ generic_literal_code() [3/4]

chomik::generic_literal_code::generic_literal_code ( const code & c)
inline

◆ generic_literal_code() [4/4]

chomik::generic_literal_code::generic_literal_code ( std::unique_ptr< code > && c)
inline

Member Function Documentation

◆ add_placeholders_to_generator()

virtual void chomik::generic_literal_code::add_placeholders_to_generator ( basic_generator & g) const
overridevirtual

Reimplemented from chomik::generic_literal.

◆ get_actual_code_value()

virtual void chomik::generic_literal_code::get_actual_code_value ( const machine & m,
const basic_generator & g,
const replacing_policy & p,
code & target ) const
overridevirtual

Reimplemented from chomik::generic_literal.

◆ get_actual_memory_representation_type()

virtual variable_with_value::actual_memory_representation_type chomik::generic_literal_code::get_actual_memory_representation_type ( machine & m,
basic_generator & g ) const
inlineoverridevirtual

◆ get_actual_text_representation()

virtual std::string chomik::generic_literal_code::get_actual_text_representation ( const machine & m,
const basic_generator & g ) const
overridevirtual

◆ get_code()

code & chomik::generic_literal_code::get_code ( )
inline

◆ get_copy()

virtual void chomik::generic_literal_code::get_copy ( std::unique_ptr< generic_literal > & target) const
inlinevirtual

◆ get_is_code()

virtual bool chomik::generic_literal_code::get_is_code ( ) const
inlineoverridevirtual

Reimplemented from chomik::generic_literal.

◆ get_result_replacing_placeholders()

virtual void chomik::generic_literal_code::get_result_replacing_placeholders ( const machine & m,
const basic_generator & g,
const replacing_policy & p,
generic_name & target ) const
overridevirtual

◆ make_copy_with_replacements()

virtual void chomik::generic_literal_code::make_copy_with_replacements ( const machine & m,
const basic_generator & g,
const replacing_policy & p,
std::unique_ptr< generic_literal > & target ) const
overridevirtual

◆ report()

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

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

copyright by Pawel Biernacki

Vantaa 2022