FE 0.5.0
A header-only C++ library for writing frontends
Loading...
Searching...
No Matches
sym.h File Reference
#include <cassert>
#include <cstring>
#include <bit>
#include <iostream>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include "fe/arena.h"
Include dependency graph for sym.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fe::Sym
 A Symbol just wraps a pointer to Sym::String, so pass Sym itself around as value. More...
 
struct  fe::Sym::String
 
struct  fe::Sym::String::Equal
 
struct  fe::Sym::String::Hash
 
class  fe::SymPool
 Hash set where all strings - wrapped in Symbol - live in. More...
 

Namespaces

namespace  fe
 

Typedefs

Sym

Set/Map is keyed by pointer - which is hashed in SymPool.

template<class V >
using fe::SymMap = std::unordered_map< Sym, V >
 
using fe::SymSet = std::unordered_set< Sym >