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

#include <chomik.h>

Public Member Functions

 list_of_statements (statement *const s, list_of_statements *const l)
 
 list_of_statements (const list_of_statements &s)
 
void report (std::ostream &s) const
 
std::vector< std::shared_ptr< statement > > & get_vector_of_statements ()
 
const std::vector< std::shared_ptr< statement > > & get_vector_of_statements () const
 
void add_statement (std::shared_ptr< statement > &&s)
 
void set_is_main (bool m)
 
void add_placeholders_to_generator (basic_generator &g) const
 
void get_actual_code_value (const machine &m, const basic_generator &g, const replacing_policy &p, code &target) const
 
bool operator== (const list_of_statements &l) const
 

Detailed Description

It is a list of executable statements of the programming language chomik.

Constructor & Destructor Documentation

◆ list_of_statements() [1/2]

chomik::list_of_statements::list_of_statements ( statement *const s,
list_of_statements *const l )

This constructor only copies the statements (both the first one and the list of subsequent statements). Its parameters should be therefore destroyed afterwards.

◆ list_of_statements() [2/2]

chomik::list_of_statements::list_of_statements ( const list_of_statements & s)

Member Function Documentation

◆ add_placeholders_to_generator()

void chomik::list_of_statements::add_placeholders_to_generator ( basic_generator & g) const

◆ add_statement()

void chomik::list_of_statements::add_statement ( std::shared_ptr< statement > && s)
inline

◆ get_actual_code_value()

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

◆ get_vector_of_statements() [1/2]

std::vector< std::shared_ptr< statement > > & chomik::list_of_statements::get_vector_of_statements ( )
inline

◆ get_vector_of_statements() [2/2]

const std::vector< std::shared_ptr< statement > > & chomik::list_of_statements::get_vector_of_statements ( ) const
inline

◆ operator==()

bool chomik::list_of_statements::operator== ( const list_of_statements & l) const

◆ report()

void chomik::list_of_statements::report ( std::ostream & s) const

◆ set_is_main()

void chomik::list_of_statements::set_is_main ( bool m)
inline

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

copyright by Pawel Biernacki

Vantaa 2022