Make separate PreparedGrammar subclass of Grammar for internal use

This commit is contained in:
Max Brunsfeld 2014-02-19 13:36:38 -08:00
parent 1d56578a81
commit e87380a8b7
28 changed files with 214 additions and 145 deletions

View file

@ -1,4 +1,5 @@
#include "spec_helper.h"
#include "prepared_grammar.h"
#include "build_tables/first_set.h"
using std::set;
@ -8,7 +9,7 @@ using namespace rules;
START_TEST
describe("computing FIRST sets", []() {
const Grammar null_grammar("", {{ "something", blank() }});
const PreparedGrammar null_grammar("", {}, {});
describe("for a sequence AB", [&]() {
it("ignores B when A cannot be blank", [&]() {