Store edits in trees, not by splitting stack

This allows for multiple edits per parse, though it is not exposed through
the API yet
This commit is contained in:
Max Brunsfeld 2015-09-13 19:47:45 -07:00
parent 0467d190fe
commit b3d883e128
11 changed files with 169 additions and 333 deletions

View file

@ -223,7 +223,7 @@ describe("Parser", [&]() {
});
it("re-reads only the changed portion of the input", [&]() {
AssertThat(input->strings_read, Equals(vector<string>({ " abc * 5)" })));
AssertThat(input->strings_read, Equals(vector<string>({ " abc * 5)", "" })));
});
});
@ -251,7 +251,7 @@ describe("Parser", [&]() {
});
it("re-reads only the changed portion of the input", [&]() {
AssertThat(input->strings_read, Equals(vector<string>({ "123 + 5 ", " 4", " ^ (", "" })));
AssertThat(input->strings_read, Equals(vector<string>({ "123 + 5 ", "" })));
});
});