From 04f8b6bd6a59607c0f19d624660dc19492c71f87 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 22 Dec 2015 08:08:39 -0500 Subject: [PATCH] Grammar: Added ::validate for consistency checking --- src/Grammar.cpp | 5 +++++ src/Grammar.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/Grammar.cpp b/src/Grammar.cpp index b82cbab4..64c16a7a 100644 --- a/src/Grammar.cpp +++ b/src/Grammar.cpp @@ -160,3 +160,8 @@ std::string Grammar::dump () const } //////////////////////////////////////////////////////////////////////////////// +void Grammar::validate () const +{ +} + +//////////////////////////////////////////////////////////////////////////////// diff --git a/src/Grammar.h b/src/Grammar.h index 0f6ee07f..60f06dfb 100644 --- a/src/Grammar.h +++ b/src/Grammar.h @@ -60,6 +60,8 @@ protected: }; private: + void validate () const; + std::string _start; std::map _rules; };