hoshi-lang dev
Yet another programming language
Loading...
Searching...
No Matches
def.hpp File Reference
#include <share/defines.h>
#include <cstdint>
#include <iterator>
#include <map>
#include <stdexcept>
#include <string>
#include <vector>
#include <sstream>
#include <stack>
#include <memory>
#include <mutex>
#include "magic_enum.h"
#include <share/utfutils.hpp>
#include <share/whereami.h>
#include <filesystem>
Include dependency graph for def.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  indexTableDeprecated< A, B >
 
class  indexTableDeprecated< A, B >::iterator
 
class  indexTable< A, B >
 
class  indexTable< A, B >::iterator
 
class  indexPool< T >
 
class  enum_range< enumT, TSize >
 
class  enum_range< enumT, TSize >::iterator
 

Namespaces

namespace  yoi
 

Macros

#define YOI_PLATFORM   "unknown"
 
#define YOI_DYLIB_SUFFIX   "so"
 
#define YOI_ARCH   "unknown"
 

Typedefs

using wstr = std::wstring
 
using wchar = wstr::value_type
 
using vdeci = double
 
using indexT = uint64_t
 
template<typename t >
using vec = std::vector< t >
 

Enumerations

enum class  ExceptionHandleType { Suppress , Warning , Panic }
 

Functions

void parseString (std::wistream &input, wstr &value)
 
wstr escapeString (const wstr &value)
 
template<typename T >
std::basic_string< T > trim (const std::basic_string< T > &str)
 
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)
 
std::wstring whereIsHoshiLang ()
 
template<typename T >
std::shared_ptr< T > managedPtr (const T &v)
 
yoi::wstr realpath (const std::wstring &path)
 
template<typename string_t >
void replace_all (string_t &str, const string_t &from, const string_t &to)
 

Macro Definition Documentation

◆ YOI_ARCH

#define YOI_ARCH   "unknown"

Definition at line 44 of file def.hpp.

◆ YOI_DYLIB_SUFFIX

#define YOI_DYLIB_SUFFIX   "so"

Definition at line 32 of file def.hpp.

◆ YOI_PLATFORM

#define YOI_PLATFORM   "unknown"

Definition at line 31 of file def.hpp.