Make separate PreparedGrammar subclass of Grammar for internal use
This commit is contained in:
parent
1d56578a81
commit
e87380a8b7
28 changed files with 214 additions and 145 deletions
|
|
@ -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", [&]() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue