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

#include <chomik.h>

Public Member Functions

 parser (program &p)
 
int parse (const char *filename)
 
int parse_string (const std::string &code, std::ostream &error_stream)
 
void copy_list_of_statements_to_the_program (list_of_statements *const l)
 

Static Public Member Functions

static void register_parser (parser *p)
 
static parserget_parser_pointer ()
 

Detailed Description

This is a parser, it is in fact written in bison, and it cooperates with a flex scanner. Its purpose is to configure the program.

Constructor & Destructor Documentation

◆ parser()

chomik::parser::parser ( program & p)

Member Function Documentation

◆ copy_list_of_statements_to_the_program()

void chomik::parser::copy_list_of_statements_to_the_program ( list_of_statements *const l)

◆ get_parser_pointer()

static parser * chomik::parser::get_parser_pointer ( )
inlinestatic

◆ parse()

int chomik::parser::parse ( const char * filename)

◆ parse_string()

int chomik::parser::parse_string ( const std::string & code,
std::ostream & error_stream )

◆ register_parser()

static void chomik::parser::register_parser ( parser * p)
inlinestatic

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

copyright by Pawel Biernacki

Vantaa 2022