From 3a7006fcf5f8ecffd852fbba6d8ee03ce8a35dce Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 14 Mar 2020 17:10:23 +0100 Subject: Remove dfa again --- bnf.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bnf.cpp') diff --git a/bnf.cpp b/bnf.cpp index 7290962..4dd896e 100644 --- a/bnf.cpp +++ b/bnf.cpp @@ -1,8 +1,8 @@ #include "bnf.h" -std::map> Reverse(BNF bnf) +std::unordered_map> Reverse(BNF bnf) { - std::map> result; + std::unordered_map> result; for (const auto& [from, to] : bnf) { for (const auto& list : to) { @@ -19,9 +19,9 @@ std::map> Reverse(BNF bnf) return result; } -std::map> reverseFirst(BNF bnf) +std::unordered_map> reverseFirst(BNF bnf) { - std::map> result; + std::unordered_map> result; for (const auto& [from, to] : bnf) { for (const auto& list : to) { -- cgit v1.2.3