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

#include <chomik.h>

Public Member Functions

 signature (const generic_name &gn, const machine &m, const basic_generator &g)
 
 signature (const generic_name &gn)
 
 signature ()
 
void set_line_number (unsigned n)
 
int get_amount_of_items () const
 
void report (std::ostream &s) const
 
void add_content (std::shared_ptr< signature_item > &&i)
 
std::string get_string_representation () const
 
std::string get_item_representation (int item_index) const
 
std::string get_item_type_name (int item_index) const
 
bool get_is_predefined (const machine &m) const
 
void execute_predefined (machine &m) const
 
const std::vector< std::shared_ptr< signature_item > > & get_vector_of_items () const
 

Detailed Description

A signature is an actual "name" of a variable. It also contains the code to execute the variables of the predefined signatures.

Constructor & Destructor Documentation

◆ signature() [1/3]

chomik::signature::signature ( const generic_name & gn,
const machine & m,
const basic_generator & g )

◆ signature() [2/3]

chomik::signature::signature ( const generic_name & gn)

◆ signature() [3/3]

chomik::signature::signature ( )

Member Function Documentation

◆ add_content()

void chomik::signature::add_content ( std::shared_ptr< signature_item > && i)

◆ execute_predefined()

void chomik::signature::execute_predefined ( machine & m) const

◆ get_amount_of_items()

int chomik::signature::get_amount_of_items ( ) const
inline

◆ get_is_predefined()

bool chomik::signature::get_is_predefined ( const machine & m) const

◆ get_item_representation()

std::string chomik::signature::get_item_representation ( int item_index) const
inline

◆ get_item_type_name()

std::string chomik::signature::get_item_type_name ( int item_index) const
inline

◆ get_string_representation()

std::string chomik::signature::get_string_representation ( ) const

◆ get_vector_of_items()

const std::vector< std::shared_ptr< signature_item > > & chomik::signature::get_vector_of_items ( ) const
inline

◆ report()

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

◆ set_line_number()

void chomik::signature::set_line_number ( unsigned n)
inline

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

copyright by Pawel Biernacki

Vantaa 2022