hoshi-lang dev
Yet another programming language
Loading...
Searching...
No Matches
def.cpp File Reference
#include <cstdio>
#include <cstdlib>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <share/def.hpp>
#include <stdlib.h>
Include dependency graph for def.cpp:

Go to the source code of this file.

Namespaces

namespace  yoi
 

Functions

void parseString (std::wistream &input, wstr &value)
 
wstr escapeString (const wstr &value)
 
void set_current_file_path (const std::wstring &path)
 
std::wstring get_line_hint_for_error (const std::wstring &file, yoi::indexT line, yoi::indexT col)
 
void panic (yoi::indexT line, yoi::indexT col, const std::string &msg)
 
void warning (yoi::indexT line, yoi::indexT col, const std::string &msg, const std::string &label)
 
void yoi_assert (bool condition, yoi::indexT line, yoi::indexT col, const std::string &msg)
 Asserts a condition that would be true and throws a runtime_error if it is false.
 
std::wstring string2wstring (const std::string &v)
 
std::string wstring2string (const std::wstring &v)
 
yoi::wstr realpath (const std::wstring &path)
 
std::wstring whereIsHoshiLang ()
 

Variables

thread_local yoi::wstr __current_file_path = L""
 
std::mutex consoleMutex
 
std::map< std::string, ExceptionHandleTypeexception_categories