blob: 79d3c0519f0127e45676c6aa5a0d967a5f32ad35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#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 PathElement = std::pair<std::string, size_t>; // Name, Index
std::map<std::string, std::set<std::string>> Reverse(BNF bnf);
|