Brain  1.0.0
A fast esoteric language!
Bootstrap Class Reference

Class that starts Brain, it has all the needed components to initialize the Brain interpreter. More...

#include <Bootstrap.h>

Public Member Functions

int init (int argc, char **argv)
 Initializes Brain by passing the arguments to be handled and parsing the source file. More...
 

Static Public Member Functions

static Bootstrapinstance ()
 Returns the instance of Bootstrap class if the member _instance is nullptr, otherwise it creates a new Bootstrap object and returns it. More...
 

Detailed Description

Class that starts Brain, it has all the needed components to initialize the Brain interpreter.

Member Function Documentation

int Bootstrap::init ( int  argc,
char **  argv 
)

Initializes Brain by passing the arguments to be handled and parsing the source file.

Parameters
argcThe integer representing how many arguments were passed.
argvThe array of characters representing the arguments passed.
Bootstrap * Bootstrap::instance ( )
static

Returns the instance of Bootstrap class if the member _instance is nullptr, otherwise it creates a new Bootstrap object and returns it.

Returns
A pointer to the Bootstrap instance.

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