a branflakes interpreter i used to play with c++
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

27 lines
426 B

#pragma once
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include "brainfuck.hpp"
#include "error.hpp"
typedef std::string BFProgram;
class Lexer {
public:
Lexer(void) {
throw ParseExcept(ErrType::NoInput); // what are you doing??
}
Lexer(BFProgram b) {
this->bf = b;
}
void printCode();
std::vector<OpCode> lexCode();
private:
BFProgram bf;
};