mirror of
https://github.com/usatiuk/nand2tetris.git
synced 2025-10-28 08:07:49 +01:00
24 lines
330 B
C++
24 lines
330 B
C++
#ifndef PARSER_H
|
|
#define PARSER_H
|
|
|
|
#include <exception>
|
|
#include <fstream>
|
|
#include <iostream>
|
|
#include <sstream>
|
|
#include <string>
|
|
|
|
#include "Commands.h"
|
|
|
|
class Parser {
|
|
private:
|
|
std::ifstream infile;
|
|
|
|
public:
|
|
Parser(std::string file);
|
|
void close();
|
|
bool more();
|
|
Command next();
|
|
};
|
|
|
|
#endif // PARSER_H
|