From fe45ee2dde28c995f1aa16a9cdc3119e00a26a8a Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 11 Sep 2021 18:23:19 +0800 Subject: ... --- include/cru/parse/Grammar.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/cru') diff --git a/include/cru/parse/Grammar.hpp b/include/cru/parse/Grammar.hpp index 98bed1b1..5b37ceba 100644 --- a/include/cru/parse/Grammar.hpp +++ b/include/cru/parse/Grammar.hpp @@ -42,6 +42,8 @@ class Grammar : public Object { std::unordered_map> GenerateLeftProductionMap() const; + // Algorithm 4.19. + // Require grammar has no cycles or empty-productions. void EliminateLeftRecursions(); private: -- cgit v1.2.3