support auto updating the sources for repl characterization #36

Open
opened 2024-03-14 22:05:34 +00:00 by jade · 0 comments
Owner

i think the way to do this is basically just go through the two sides line by line, advancing the sources, and replacing in the sources from the other side if the output lines don't match, but, you do have to also deal with whitespace in the same manner as tidy for comparison.

realistically: i think tidy for comparison should be non destructive and mark lines as ignored for comparison with a little wrapper class of the vector. then you can just use the naive replacement algo suggested above without losing any whitespace.

but for now you can just do the copy paste then indent routine. 

i think the way to do this is basically just go through the two sides line by line, advancing the sources, and replacing in the sources from the other side if the output lines don't match, but, you do have to also deal with whitespace in the same manner as tidy for comparison. realistically: i think tidy for comparison should be non destructive and mark lines as ignored for comparison with a little wrapper class of the vector. then you *can* just use the naive replacement algo suggested above without losing any whitespace. but for now you can just do the copy paste then indent routine. 
jade added the
devx
label 2024-03-14 22:05:34 +00:00
rbt was assigned by jade 2024-03-14 22:05:34 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#36
No description provided.