Use map, not unordered_map in Grammar
This commit is contained in:
parent
dd0feea8e6
commit
9a737e2316
7 changed files with 32 additions and 47 deletions
|
|
@ -29,7 +29,7 @@ describe("preparing a grammar", []() {
|
|||
aux_sym("token1") }) }
|
||||
})));
|
||||
|
||||
AssertThat(result.second, Equals(Grammar("", {}, {
|
||||
AssertThat(result.second, Equals(Grammar("", map<const string, const rule_ptr>(), {
|
||||
{ "token1", rules::seq({
|
||||
rules::character('a'),
|
||||
rules::character('b') }) },
|
||||
|
|
@ -98,7 +98,7 @@ describe("preparing a grammar", []() {
|
|||
}) },
|
||||
})));
|
||||
|
||||
AssertThat(result.second, Equals(Grammar("", {}, {
|
||||
AssertThat(result.second, Equals(Grammar("", map<const string, const rule_ptr>(), {
|
||||
{ "token1", repeat(seq({ str("a"), str("b") })) },
|
||||
})));
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue