Bash++
Bash++ compiler internal documentation
Classes | Namespaces | Functions
bpp_codegen.h File Reference
#include <string>
#include <memory>
#include <antlr4-runtime.h>
#include "../internal_error.cpp"
Include dependency graph for bpp_codegen.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  bpp::code_segment
 A struct to hold (compiled) code segments. More...
 

Namespaces

 bpp
 

Functions

code_segment bpp::generate_supershell_code (const std::string &code_to_run, bool in_while_condition, std::shared_ptr< bash_while_condition > current_while_condition, std::shared_ptr< bpp::bpp_program > program)
 Generates a supershell code segment for executing a bash command. More...
 
code_segment bpp::generate_delete_code (std::shared_ptr< bpp_object > object, const std::string &object_ref, std::shared_ptr< bpp::bpp_program > program)
 
code_segment bpp::generate_method_call_code (const std::string &reference_code, const std::string &method_name, std::shared_ptr< bpp_class > assumed_class, std::shared_ptr< bpp::bpp_program > program)
 
code_segment bpp::generate_dynamic_cast_code (const std::string &reference_code, const std::string &class_name, std::shared_ptr< bpp::bpp_program > program)
 Generates a code segment for performing a dynamic cast. More...
 
code_segment bpp::inline_new (const std::string &new_address, std::shared_ptr< bpp::bpp_class > new_class)
 Generates a code segment to INLINE class's "new" function within a method. More...