mirror of
https://github.com/usatiuk/nand2tetris.git
synced 2025-10-29 08:37:48 +01:00
move interesting projects to the root
This commit is contained in:
23
VMTranslator/Parser.h
Normal file
23
VMTranslator/Parser.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user