Added token class

Also added a couple of foward declarations for faster compiles
This commit is contained in:
Pasha Bibko
2025-04-17 11:40:00 +01:00
parent f28b81ab87
commit 84f2a4cc5e
3 changed files with 81 additions and 11 deletions

View File

@@ -1,9 +1,24 @@
#pragma once
#include <fstream>
#include <vector>
#include <string>
// Foward declarations of STD classes to minimise includes //
namespace std
{
template<typename T1 = char>
struct char_traits;
template<typename T1, typename T2>
class basic_ifstream;
template<typename T1, typename T2>
class basic_ofstream;
using ifstream = basic_ifstream<char, char_traits<char>>;
using ofstream = basic_ofstream<char, char_traits<char>>;
}
// This file contains everything that is exported from Lexer.lib
// The rest of the items within the Lexer project are internal only