Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wip v2 #60

Open
wants to merge 79 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
b908b9a
Wip v2
ElianCordoba Feb 5, 2024
ab87add
Wippp
ElianCordoba Feb 5, 2024
abf14e7
Workingggg
ElianCordoba Feb 5, 2024
b99177c
Some tests
ElianCordoba Feb 5, 2024
eba240c
test command
ElianCordoba Feb 5, 2024
d3a7179
Updates
ElianCordoba Feb 5, 2024
7790e04
Lets roll
ElianCordoba Feb 5, 2024
4c9cbac
fmt
ElianCordoba Feb 5, 2024
6da8e83
wip
ElianCordoba Feb 25, 2024
4e1423d
Working
ElianCordoba Feb 26, 2024
ff579fc
Super wip
ElianCordoba Mar 1, 2024
01a6474
Workinggggg
ElianCordoba Mar 1, 2024
3b90ef8
explore match code first pass
ElianCordoba Mar 5, 2024
9203f53
wip
ElianCordoba Mar 5, 2024
e4c6248
basic case working
ElianCordoba Mar 5, 2024
2b8e8f4
Fix issue
ElianCordoba Mar 5, 2024
77f19e1
rough but working on B
ElianCordoba Mar 5, 2024
6e56d8b
New debug tool
ElianCordoba Mar 11, 2024
6798242
Improved move finder logic
ElianCordoba Mar 12, 2024
5877369
Properly track skips on nodesAhead branch
ElianCordoba Mar 13, 2024
de1861f
Added util
ElianCordoba Mar 13, 2024
fb2c7f1
Wip
ElianCordoba Mar 13, 2024
0eda648
Fix logic bug
ElianCordoba Mar 13, 2024
d240737
Wip
ElianCordoba Mar 13, 2024
dac5f2d
Moved code around
ElianCordoba Mar 14, 2024
d516453
wip
ElianCordoba Mar 17, 2024
f243c6a
Working
ElianCordoba Mar 18, 2024
515cb63
x
ElianCordoba Mar 18, 2024
efb5c68
Only align moves
ElianCordoba Mar 20, 2024
6161d68
wip compaction
ElianCordoba Mar 20, 2024
c603ee1
Addition and removals compaction
ElianCordoba Mar 20, 2024
d8f3d9b
Fix printer when diff crosses multiple lines
ElianCordoba Mar 20, 2024
dec4088
Print additions and deletions with multiple segments
ElianCordoba Mar 20, 2024
dd17d7e
Simplified printer code
ElianCordoba Mar 20, 2024
498e566
Changed segment length for text length in finding a better match
ElianCordoba Mar 21, 2024
a25bbd0
Move match to a class, separate moves from changes
ElianCordoba Mar 22, 2024
9474698
Simplified code
ElianCordoba Mar 22, 2024
116be9d
Wroking
ElianCordoba Mar 22, 2024
e976ed0
More fixes
ElianCordoba Mar 22, 2024
8b987df
Enabled first tests
ElianCordoba Mar 22, 2024
d026eb4
More test enabled with improved output
ElianCordoba Mar 22, 2024
0b843ac
more working
ElianCordoba Mar 22, 2024
69a2aab
Moved code around
ElianCordoba Mar 24, 2024
c8e95b4
Cleaned up options code, merged into context
ElianCordoba Mar 24, 2024
59167cd
some notes
ElianCordoba Mar 24, 2024
da40873
enabled more tests
ElianCordoba Mar 24, 2024
98258b2
updated vite
ElianCordoba Mar 24, 2024
a82a67d
Initial single matching node check
ElianCordoba Mar 25, 2024
36b1c70
Working skipping matches based on the single node logic
ElianCordoba Mar 26, 2024
8e54493
Cleanup
ElianCordoba Mar 26, 2024
64776fe
Single node matching working stable now
ElianCordoba Mar 27, 2024
20a2fd9
Rename
ElianCordoba Mar 27, 2024
81732b9
Refactored printing and debug functions
ElianCordoba Mar 27, 2024
df36c4b
move code to fn
ElianCordoba Mar 27, 2024
fe69080
Added basic tracing
ElianCordoba Apr 3, 2024
a916509
Rename
ElianCordoba Apr 5, 2024
58ec22c
Cleanups and comments
ElianCordoba Apr 5, 2024
2279137
Updated comments
ElianCordoba Apr 8, 2024
a397e7b
Wip
ElianCordoba Apr 8, 2024
5e9b48a
Initial version of backwards checking working
ElianCordoba Apr 8, 2024
d6cfb69
More fixes that break infinite recursion
ElianCordoba Apr 8, 2024
6f308c9
Working backwards pass
ElianCordoba Apr 8, 2024
a2d44bc
Moved code
ElianCordoba Apr 9, 2024
af5ac44
Unit tests passing
ElianCordoba Apr 10, 2024
0199318
Small hack to improve the debugging experience
ElianCordoba Apr 10, 2024
ee7d9a6
Fix crash in backwards exploration
ElianCordoba Apr 10, 2024
9006394
Refactor util
ElianCordoba Apr 10, 2024
631d09c
Improved test
ElianCordoba Apr 10, 2024
83dfd7b
Fix bug
ElianCordoba Apr 10, 2024
226ee2b
Moved code
ElianCordoba Apr 12, 2024
90f366e
Wip
ElianCordoba Apr 15, 2024
1b167c5
Working same function for backwards and forward exploration
ElianCordoba Apr 15, 2024
fb5f79c
Fix style
ElianCordoba Apr 15, 2024
285ccd9
Cleanup pass 1
ElianCordoba Apr 16, 2024
c2f3cea
More cleanups
ElianCordoba Apr 16, 2024
612ad3b
Remove old comment
ElianCordoba Apr 16, 2024
16ae67a
Updated comment
ElianCordoba Apr 16, 2024
fececed
added iters
ElianCordoba Apr 16, 2024
04866fb
Match text length now is a computed property
ElianCordoba Apr 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Tasks:

- Open close verifier
- Can node be matched alone
- Cheking parents to avoid semantic errors
- More draw functions
- Change
- Segment
- Semantic aignment table
- Update UI to work with V2

- !!! Merge v2 and remove old code

- Alignment
- Pass configs (compiler, lang name, openClose, singleMatchingNode) as language options
- Fuzzer to detect crashes
1 change: 0 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"exclude": [
"ui",
"scripts",
"tests",
"node_modules",
"internal",
"dist",
Expand Down
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"name": "Elian Cordoba"
},
"scripts": {
"test": "vitest -c ./vitest.config.js",
"test": "vitest -c ./vitest.config.mjs",
"testNew": "vitest -c ./vitest.config.mjs additions-removals changes move sequence-matching trivia-diff backwards-pass",
"build": "tsc --watch",
"check": "npm run format && npm run lint",
"format": "deno fmt",
Expand All @@ -25,14 +26,16 @@
"@fastify/cors": "^8.3.0",
"fastify": "^4.19.2",
"kleur": "^4.1.5",
"typescript": "5.1.6"
"typescript": "5.3.3"
},
"devDependencies": {
"@types/benchmark": "^2.1.2",
"@types/node": "^20.11.30",
"benchmark": "^2.1.4",
"cli-table3": "^0.6.3",
"pprof-it": "^1.2.1",
"tsx": "^4.7.0",
"vite": "4.4.2",
"vitest": "0.33.0"
"vitest": "1.4.0"
}
}
}
Loading
Loading