Commit Graph

173 Commits

Author SHA1 Message Date
446e335f54 fix minor bug in 'helpGoToEnd' function in line_gap.sml (we were meant to pass rStrTl and rLnTl, but we were passing empty lists instead which caused us to lose data) 2024-10-30 10:53:17 +00:00
16f65c0d9d add 'goToEnd' function in line_gap.sml 2024-10-30 10:23:55 +00:00
d59d0bb17f fix starting 'goToLine' function in line_gap.sml; previously, we were comparing 'searchLine' to 'idx' to decide where to move buffer, but now we are comparing 'searchLine' to buffer's 'line' instead which is correct 2024-10-28 21:33:52 +00:00
d2e5c23c61 abstract reusable function from goToLine so it can be used in goToIdx, and implement goToIdx 2024-10-10 22:56:24 +01:00
d4ef45630d add function to move to specific line number (or the node containing a specific line number if node contains multiple line breaks) 2024-10-05 23:01:19 +01:00
36edbb6dee add function to go to start of line_gap.sml 2024-10-05 14:17:15 +01:00
2a5a5b0787 add append function to line_gap.sml 2024-10-05 12:39:45 +01:00
599252e5ed add function to create a LineGap.t from a string (although, for performance reasons, it's best to use this function when string is shorter than 1024 chars) 2024-10-05 00:57:12 +01:00
014c2ef7d1 add signature to line_gap.sml 2024-10-04 15:00:14 +01:00
9be5d36e50 add benchmark files for line_gap.sml and adjust the Makefile in /bench/ directory to use them 2024-07-21 00:45:37 +01:00
98f93701fd clean line_gap.sml a little - done with this now 2024-07-20 14:41:51 +01:00
2fd0df641a remove debugging print statements from line_gap.sml 2024-07-20 11:31:31 +01:00
8b296d0332 verify that all known bugs have been fixed and that none of the datasets give any issues with string contents or line metadata 2024-07-20 01:23:38 +01:00
59ac0aded8 after amending a few more bugs, it seems that line metadata and index metadata are handled correctly. At least for svelte dataset; worth checking others as well 2024-07-20 00:52:49 +01:00
fa9e5567ca amend another idx metadata bug, but now there is another one 2024-07-20 00:28:25 +01:00
d71fd80398 amend few bugs - now there is another error with buffer having wrong index 2024-07-20 00:14:21 +01:00
f6c3a01b11 amend error with buffer having wrong index 2024-07-19 23:56:40 +01:00
26dff0c083 amend a bug to do with tabulating vector 2024-07-19 20:12:09 +01:00
05e3f3e2db amend a bug to do wth building wrong string output in line_gap.sml 2024-07-19 19:57:57 +01:00
34139e616b amend another Vector tabulate bug 2024-07-18 23:16:24 +01:00
120a84fd28 amend another bug 2024-07-18 22:41:54 +01:00
bd8edc3bf4 amend another bug 2024-07-18 22:27:41 +01:00
898249a1a8 amend bug 2024-07-18 22:19:29 +01:00
b227aa68ba save current status of file 2024-07-18 15:58:07 +01:00
371bc093ff fix bug revealed by checking for incorrect index metadta in line_gap.sml 2024-07-18 15:38:31 +01:00
117ffeba6e add check to verify that index is always correct in test program 2024-07-18 15:36:21 +01:00
a2549b9093 amend one bug 2024-07-16 14:26:53 +01:00
1a325fcc87 fix infinite loop in src/line_gap.sml (still have other errors I need to address though) 2024-07-16 01:03:09 +01:00
d47181921e address some bugs with one deletion function 2024-07-16 00:07:38 +01:00
99b1a32393 add debug print statements for deletion in line_gap.sml 2024-07-15 21:48:24 +01:00
d8b65a5546 add deletion to compare-testing (deletion does not work properly yet, as expected) 2024-07-14 17:49:05 +01:00
7c7a4103d8 address compiler warnings and errors in src/line_gap.sml 2024-07-14 17:43:43 +01:00
1439138d50 additional progress with delete (most helper functions done) 2024-07-14 17:16:15 +01:00
cf18916d00 additional progress with delete 2024-07-14 16:39:44 +01:00
30cee61f94 progress with delete 2024-07-14 16:31:03 +01:00
4dd90b5900 progress with delete 2024-07-14 16:23:42 +01:00
19c5501777 add another helper function for deletion to line_gap.sml 2024-07-09 23:45:35 +01:00
8d540f4df9 code another deletion helper function for line_gap.sml 2024-07-07 19:49:37 +01:00
d6d2eaac1c complete initial implementation of 'moveRightAndDelete' function in line_gap.sml 2024-07-07 11:16:06 +01:00
0e384f11e3 a tiny amount of progress with delete 2024-07-05 12:09:30 +01:00
acc7767d24 progress with deletion 2024-07-04 09:47:35 +01:00
a261317e4a partially code another helper function for delete 2024-07-04 06:29:35 +01:00
9e0dc9734b code first part of delete function 2024-07-04 05:57:31 +01:00
ca3dab5193 wrap helper functions to 'insert' inside 'local ... in ... end' to semantically convey that these helper functions are never used elsewhere 2024-07-04 03:39:00 +01:00
c6fef0499e life if-statement up (so that the test is only done once, to help the branch predictor) 2024-07-04 03:24:34 +01:00
b70763b7b8 clean up line_gap.sml (removed debug editing) 2024-07-03 18:09:20 +01:00
58a56e9685 address a few things I forgot in line_gap.sml 2024-07-03 17:41:04 +01:00
3a954ceb4c remove dead comment 2024-07-03 14:49:32 +01:00
0012304854 verify another if-statement case 2024-07-03 14:35:38 +01:00
5117678c1d fix another buggy Vector.tabulate case 2024-07-03 14:05:27 +01:00