From f4b2027868c9733bbbbcb4c5ec6d5462a8447e5d Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Tue, 21 Jan 2020 22:49:30 +0100 Subject: Separate to cpp files --- grammer.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 grammer.h (limited to 'grammer.h') diff --git a/grammer.h b/grammer.h new file mode 100644 index 0000000..5e76c60 --- /dev/null +++ b/grammer.h @@ -0,0 +1,19 @@ +#pragma once + +#include "bnf.h" +#include "minicc.h" + +class Compiler +{ + +private: + const BNF &m_bnf; + const std::string& m_Top; + + std::map> ReverseBNF; + +public: + Compiler(const BNF& bnf, const std::string& Top); + ProgramNode compile(std::vector Tokens); +}; + -- cgit v1.2.3