diff options
Diffstat (limited to 'bnf.h')
-rw-r--r-- | bnf.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -0,0 +1,17 @@ +#pragma once + +#include <deque> +#include <map> +#include <set> +#include <string> +#include <utility> +#include <vector> + +using namespace std::string_literals; + +using BNF = std::map<std::string, std::vector<std::vector<std::string>>>; +using Terminals = std::set<std::string>; +using ProgramNode = std::deque<std::string>; +using PathElement = std::pair<std::string, size_t>; // Name, Index + +std::map<std::string, std::set<std::string>> Reverse(BNF bnf); |