20 lines
380 B
C++
20 lines
380 B
C++
#include "Lexer.hpp"
|
|
#include "TokenList.hpp"
|
|
|
|
#include <iostream>
|
|
#include <fstream>
|
|
#include <map>
|
|
|
|
using namespace Blang;
|
|
|
|
|
|
TokenList Lexer::tokenizeFile(const std::string& filename){
|
|
std::ifstream fileStream(filename);
|
|
if(fileStream){
|
|
std::string text, line;
|
|
// TODO
|
|
} else {
|
|
std::cout << "Error: Unable to read file" << std::endl;
|
|
}
|
|
}
|