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

AST Comparison API #689

Merged
merged 26 commits into from
Aug 17, 2024
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
595909d
feat(grammar): Initial version of `AstComparator`
jubnzv Aug 14, 2024
44e70fd
chore: prettier
jubnzv Aug 14, 2024
d0c5eba
feat(tests): `src/tests/formatting/propper` → `src/tests/contracts`
jubnzv Aug 15, 2024
48251c8
feat(cmp): Introduce basic alpha renaming for top-level struct/messages
jubnzv Aug 15, 2024
465af4a
chore: Move spec files to the test directory
jubnzv Aug 15, 2024
bb1049c
chore(tests): Generalize; extract common functionality
jubnzv Aug 15, 2024
a9c68fe
feat(hash): Support all the AST nodes
jubnzv Aug 15, 2024
432ea80
chore(hash): `public`→`private` when needed
jubnzv Aug 15, 2024
0537c0f
feat(renamer): Rename declarations of top-level elements
jubnzv Aug 16, 2024
6d607ef
fix: unused imports, formatting, spelling
jubnzv Aug 16, 2024
5878bb0
chore(cspell): typo
jubnzv Aug 16, 2024
696c28a
chore: Remove src/test/contracts/pretty-printer-output/case-1.tact
jubnzv Aug 16, 2024
16d16d6
feat(renamer): Rename native functions
jubnzv Aug 16, 2024
87e12b9
fix(rename+cmp): Rename only whole modules
jubnzv Aug 16, 2024
07ad262
fix(tests): Formatter test
jubnzv Aug 16, 2024
cf57f6e
chore: Upload updated test
jubnzv Aug 16, 2024
bd8a710
fix: ESLint warnings
jubnzv Aug 16, 2024
436840a
fix: cspell
jubnzv Aug 16, 2024
d259608
fix: knip
jubnzv Aug 16, 2024
eb7e032
chore: Update CHANGELOG
jubnzv Aug 16, 2024
9c0f659
feat(rename+sort): Sort attributes if requested
jubnzv Aug 16, 2024
d400207
chore(sort): Fix eslint warning
jubnzv Aug 17, 2024
688c42b
chore: Add new API to index.ts
jubnzv Aug 17, 2024
d0b99de
chore(cspell): Remove typo
jubnzv Aug 17, 2024
3ae9086
Merge remote-tracking branch 'origin/main' into 686-api-cmp
jubnzv Aug 17, 2024
b780f78
fix: prettier
jubnzv Aug 17, 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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ output/
src/grammar/grammar.ohm-bundle.js
src/grammar/grammar.ohm-bundle.d.ts
src/func/funcfiftlib.wasm.js

src/test/contracts/pretty-printer-output
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Initial version of the API providing AST equivalence check: PR [#689](https://github.com/tact-lang/tact/pull/689)

### Changed

### Fixed
Expand Down
4 changes: 4 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@
"привет",
"PUSHREF",
"PUSHSLICE",
"renamer",
"canonizalize",
jubnzv marked this conversation as resolved.
Show resolved Hide resolved
"Brujin",
"dentry",
"SETINDEXVARQ"
],
"flagWords": [],
Expand Down
1 change: 1 addition & 0 deletions knip.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"project": ["src/**/*.ts", "bin/tact.js"],
"ignore": [
"src/grammar/ast.ts",
"src/grammar/sort.ts",
jubnzv marked this conversation as resolved.
Show resolved Hide resolved
"src/prettyPrinter.ts",
".github/workflows/tact.yml"
],
Expand Down
Loading