aboutsummaryrefslogtreecommitdiff
path: root/include/cru/parse/Grammar.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/parse/Grammar.hpp')
-rw-r--r--include/cru/parse/Grammar.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/cru/parse/Grammar.hpp b/include/cru/parse/Grammar.hpp
index 5b37ceba..659c4302 100644
--- a/include/cru/parse/Grammar.hpp
+++ b/include/cru/parse/Grammar.hpp
@@ -46,6 +46,9 @@ class Grammar : public Object {
// Require grammar has no cycles or empty-productions.
void EliminateLeftRecursions();
+ // Algorithm 4.21
+ void LeftFactor();
+
private:
Nonterminal* start_symbol_;
std::vector<Terminal*> terminals_;