From c0a7a203cfe58312dc48cf1d05d3bf0c8a91f19b Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 2 Jan 2016 14:42:06 -0500 Subject: [PATCH] LR0: Added ::expand --- src/LR0.cpp | 8 ++++++++ src/LR0.h | 1 + 2 files changed, 9 insertions(+) diff --git a/src/LR0.cpp b/src/LR0.cpp index 5d174678..e13135b8 100644 --- a/src/LR0.cpp +++ b/src/LR0.cpp @@ -126,6 +126,14 @@ std::set LR0::getExpected (const Closure& closure) return expected; } +//////////////////////////////////////////////////////////////////////////////// +LR0::Closure LR0::expand (const Closure& closure) const +{ + LR0::Closure result; + + return closure; +} + //////////////////////////////////////////////////////////////////////////////// // Aho/Sethi/Ullman, p224 // diff --git a/src/LR0.h b/src/LR0.h index cdaa2d80..f0566838 100644 --- a/src/LR0.h +++ b/src/LR0.h @@ -70,6 +70,7 @@ public: private: Closure getClosure (const Closure&); std::set getExpected (const Closure&); + Closure expand (const Closure&) const; private: // Copy of the augmented grammar.