aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/cru/parse/Grammar.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/cru/parse/Grammar.hpp b/include/cru/parse/Grammar.hpp
index 659c4302..606fcc33 100644
--- a/include/cru/parse/Grammar.hpp
+++ b/include/cru/parse/Grammar.hpp
@@ -49,8 +49,11 @@ class Grammar : public Object {
// Algorithm 4.21
void LeftFactor();
+ public:
+ String ProductionsToString() const;
+
private:
- Nonterminal* start_symbol_;
+ Nonterminal* start_symbol_ = nullptr;
std::vector<Terminal*> terminals_;
std::vector<Nonterminal*> nonterminals_;
std::vector<Symbol*> symbols_;