summaryrefslogtreecommitdiffhomepage
path: root/grammer.cpp
blob: d275da6da33130b36cc3ee1205bcf1550ce2ab9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "grammer.h"

using namespace Gram;

Compiler::Compiler(const BNF& bnf, const std::string& Top): m_bnf(bnf), m_Top(Top), ReverseBNF{Reverse(bnf)}
{
}

ProgramNode Compiler::compile(std::vector<Token> Tokens)
{
 if (Tokens.size()){
 } else
  throw std::runtime_error("No tokens!");

 return {};
}