Functional-lang  0.0
An example functional programming language
Functions
func.hpp File Reference

Main file of the project. You want to include this, nothing else. More...

#include "func/global.hpp"
#include "func/lexer.hpp"
#include "func/syntax.hpp"
#include "func/parser.hpp"

Go to the source code of this file.

Functions

bool interpret (std::istream &input, GCMain &gc, std::vector< std::string > &lines, Environment *env=nullptr, bool interpret_mode=false) noexcept
 Interpret characters streamed from input. More...
 

Detailed Description

Main file of the project. You want to include this, nothing else.

Function Documentation

◆ interpret()

bool interpret ( std::istream &  input,
GCMain &  gc,
std::vector< std::string > &  lines,
Environment *  env = nullptr,
bool  interpret_mode = false 
)
noexcept

Interpret characters streamed from input.

Parameters
gc\parm env If nullptr: create new one.
input
interpret_modePrints some pretty helpers (line prefixes) if true.
Returns
Returns true on success, false if error occured.