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

#include <chomik.h>

Public Member Functions

 type_definition (const char *const type_name, type_definition_body *const b)
 
void report (std::ostream &s) const
 
void expand (machine &m, int depth, std::shared_ptr< type_instance > &e) const
 
void add_placeholders_to_generator (basic_generator &g) const
 
const std::string & get_name () const
 
bool get_is_range () const
 
type_definition_bodyget_body ()
 

Constructor & Destructor Documentation

◆ type_definition()

chomik::type_definition::type_definition ( const char *const type_name,
type_definition_body *const b )
inline

This constructor takes the second parameter and owns it, the type_definition_body must not be destroyed by the parser!

Member Function Documentation

◆ add_placeholders_to_generator()

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

◆ expand()

void chomik::type_definition::expand ( machine & m,
int depth,
std::shared_ptr< type_instance > & e ) const

◆ get_body()

type_definition_body & chomik::type_definition::get_body ( )
inline

◆ get_is_range()

bool chomik::type_definition::get_is_range ( ) const

◆ get_name()

const std::string & chomik::type_definition::get_name ( ) const
inline

◆ report()

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

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

copyright by Pawel Biernacki

Vantaa 2022