Compute closure of item sets under symbol expansion
This commit is contained in:
parent
6bbaba3ef8
commit
f7063ba1d8
23 changed files with 251 additions and 91 deletions
|
|
@ -11,11 +11,11 @@ Describe(Rules) {
|
|||
It(constructs_binary_trees) {
|
||||
AssertThat(
|
||||
rules::seq({ symbol1, symbol2, symbol3 })->to_string(),
|
||||
Equals(std::string("(seq 1 (seq 2 3))")));
|
||||
Equals(std::string("(seq (sym '1') (seq (sym '2') (sym '3')))")));
|
||||
|
||||
AssertThat(
|
||||
rules::choice({ symbol1, symbol2, symbol3 })->to_string(),
|
||||
Equals(std::string("(choice 1 (choice 2 3))")));
|
||||
Equals(std::string("(choice (sym '1') (choice (sym '2') (sym '3')))")));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue