Open 3052 opened 1 year ago
Hi, currently we don't have the un-mangle
feature yet. You can use other tools for the first pass, and let wakaru
handle syntax-related unminification. I will transform this issue to a feature request, so that we can track the progress of it here. 🙏
For now, we have smart-rename
that can guess the variable name based on the context. I would like to expand it to cover some other generic cases.
I just finished up writing some thoughts/references for variable renaming on the webcrack
repo, that could also be a useful idea for here. (see quotes below)
When I was exploring PoC ideas for my own project previously, I was looking to generate a file similar to the 'module map' that this project is using; but instead of just for the names of modules, I wanted to be able to use it to provide a 'variable name map'. Though because the specific variables used in webpack/etc can change between builds, my thought was that first 'normalising' them to a 'known format' based on their context would make sense to do first.
That could then be later enhanced/expanded by being able to pre-process these 'variable name mappings' for various open source projects in a way that could then be applied 'automagically' without the end user needing to first create them.
It could also be enhanced by similar techniques such as what the humanify
project does, by using LLMs/similar to generate suggested variable name mappings based on the code.
My personal ideal end goal for a feature like that would then allow me to use it within an IDE-like environment, where I can rename variables 'as I explore', knowing that the mappings/etc will be kept up to date.
When I was exploring this concept in my own deobfuscation PoC project, I was exploring to make the variable names unique + have them add sort of semantic information about their source/scope.
Eg. if it was an arg to a function, it might be
arg_1
. Or potentially if the function isfoo
, it might end up asfoo_arg_1
It looks like most of the PoC code I was playing with was local/in a pretty messy/hacky state, but I did find a link in it to an online REPL I was playing around with some of it in. Not sure how outdated that code is, but it might be useful:
There were a number of different AST parsers I was playing around with, but I think that this babel code may have been the latest (not sure which one):
- https://replit.com/@0xdevalias/Rewriting-JavaScript-Variables-via-AST-Examples#babel_v1_3.js
- https://replit.com/@0xdevalias/Rewriting-JavaScript-Variables-via-AST-Examples#babel_v1_3_clean.js
Within those files, I believe the functions
getNameFromPath
,getPrefix
(and older commented out functionsgetTypePrefix
,getPrefix
Edit: Came across this in another issue here:
I published my decompiler that I used in the above example. I think it might be a good reference for adding this feature. https://github.com/e9x/krunker-decompiler
Originally posted by @e9x in https://github.com/j4k0xb/webcrack/issues/10#issuecomment-1546764062
And looking at it's
libRenameVars
code seems to be taking a vaguely similar approach to how I was looking at doing things in my original PoC that I described above:
- https://github.com/e9x/krunker-decompiler/blob/master/src/libRenameVars.ts
getVarPrefix
will set a prefix based on the type (eg.func
,arg
,Class
,imported
,var
)getName
generates a new variable name that does not conflict with existing names or reserved keywordsgenerateName
generates a new name for a variable considering its scope, type, and the context in which it is used (e.g., whether it's a class, a function variable, etc.). It employs various AST manipulations to ensure the generated name is appropriate and does not conflict with existing names.A more generalised summary/overview (via ChatGPT):
Certainly, the code implements a sophisticated algorithm for renaming variables in a JavaScript program, adhering to several high-level rules and strategies:
Type-Specific Prefixing:
- The
getVarPrefix
function assigns specific prefixes to variable names based on their type (e.g., "func" for function names, "arg" for parameters). This approach helps in identifying the role of a variable just by its name.Avoiding Reserved Keywords:
- The script includes a comprehensive list of reserved JavaScript keywords. If a variable's name matches a reserved keyword, it is prefixed with an underscore to prevent syntax errors.
Unique Naming with Context Consideration:
- The
generateName
function ensures that each variable gets a unique name that doesn't conflict with other variables in its scope. It also considers the context in which a variable is used. For example, if a variable is part of a class, it may receive a name that reflects this context, usingpascalCase
orcamelCase
as appropriate.Handling Special Cases:
- The script contains logic to handle special cases, such as variables that are function expressions (
isFuncVar
) or class instances (isClass
). This affects the naming convention applied to these variables.Randomness with Mersenne Twister:
- A Mersenne Twister is used to generate random elements for variable names, ensuring that the names are not only unique within the scope of the program but also less predictable.
AST-Based Renaming:
- The script analyzes the Abstract Syntax Tree (AST) of the program to understand the structure and scope of variables. This analysis guides the renaming process, ensuring that the new names are consistent with the variable's usage and position in the code.
Scope Analysis with ESLint Scope:
- By leveraging
eslint-scope
, the script can accurately determine the scope of each variable. This is crucial in avoiding name collisions and ensuring that the renaming respects lexical scoping rules in JavaScript.Consideration for Exported and Assigned Variables:
- The script pays special attention to variables that are exported or assigned in specific ways (e.g., through
Object.defineProperty
). It ensures that these variables receive names that are appropriate for their roles.In summary, the script uses a combination of type-based naming conventions, context consideration, randomness, AST analysis, and scope analysis to systematically rename variables in a JavaScript program. This approach aims to enhance readability, avoid conflicts, and maintain the logical structure of the program.
Originally posted by @0xdevalias in https://github.com/j4k0xb/webcrack/issues/21#issuecomment-1807290502
And for an even cooler/more extreme version of improving variable naming; I just came across this blog post / project from @jehna that makes use of
webcrack
+ ChatGPT for variable renaming:
- https://thejunkland.com/blog/using-llms-to-reverse-javascript-minification.html
Using LLMs to reverse JavaScript variable name minification This blog introduces a novel way to reverse minified Javascript using large language models (LLMs) like ChatGPT and llama2 while keeping the code semantically intact. The code is open source and available at Github project Humanify.
- https://github.com/jehna/humanify
Un-minify Javascript code using ChatGPT
This tool uses large language modeles (like ChatGPT & llama2) and other tools to un-minify Javascript code. Note that LLMs don't perform any structural changes – they only provide hints to rename variables and functions. The heavy lifting is done by Babel on AST level to ensure code stays 1-1 equivalent.
Originally posted by @0xdevalias in https://github.com/j4k0xb/webcrack/issues/21#issuecomment-1807342986
For now, we have
smart-rename
that can guess the variable name based on the context. I would like to expand it to cover some other generic cases.
Linking to my smart-rename
related issues to keep the contextual link here:
Another link from my reference notes that I forgot to include earlier; my thoughts on how to rename otherwise unknown variables are based on similar concepts that are used in reverse engineering tools such as IDA:
- https://hex-rays.com/blog/igors-tip-of-the-week-34-dummy-names/
In IDA’s disassembly, you may have often observed names that may look strange and cryptic on first sight:
sub_73906D75
,loc_40721B
,off_40A27C
and more. In IDA’s terminology, they’re called dummy names. They are used when a name is required by the assembly syntax but there is nothing suitable available- https://www.hex-rays.com/products/ida/support/idadoc/609.shtml
IDA Help: Names Representation
Dummy names are automatically generated by IDA. They are used to denote subroutines, program locations and data. Dummy names have various prefixes depending on the item type and value
Originally posted by @0xdevalias in https://github.com/j4k0xb/webcrack/issues/21#issuecomment-1822262649
And a few more I was looking at recently as well (that is sort of basically smart-rename
:
Automatic Variable Naming One easy way to improve decompilation output is to come up with better default names for variables. There’s a lot of possible defaults you could choose and a number of different strategies are seen throughout different reverse engineering tools. Prior to 3.5, Binary Ninja left variables named based on their origin. Stack variables were var_OFFSET, register-based variables were regCOUNTER, and global data variables were (data). While this scheme isn’t changing, we’re being much more intelligent about situations where additional information is available.
For example, if a variable is passed to a function and a variable name is available, we can now make a much better guess for the variable name. This is most obvious in binaries with type libraries.
This isn’t the only style of default names. Binary Ninja also will name loop counters with simpler names like
i
, orj
,k
, etc (in the case of nested loops)
Was looking closer at the sourcemap
spec today, and the names
field jumped out at me as potentially useful:
names
: a list of symbol names used by themappings
entry
mappings
: a string with the encoded mapping data (see 4.1 Mappings Structure)
The
mappings
data is broken down as follows:
- each group representing a line in the generated file is separated by a semicolon (
;
)- each segment is separated by a comma (
,
)- each segment is made up of
1
,4
, or5
variable length fields.
If present, the zero-based index into the
names
list associated with this segment. This field is a base 64 VLQ relative to the previous occurrence of this field unless this is the first occurrence of this field, in which case the whole value is represented.
Obviously if there is a full sourcemap
for the webapp, then wakaru
isn't really needed anyway.. but what I was thinking of here is that in combination with module detection (see - https://github.com/pionxzh/wakaru/issues/41), if there are sourcemaps
s available for that original module, then we could potentially extract the original function/variable/etc names from the names
field of the sourcemap
, and use them in a sort of 'smart-rename with sourcemap' type way.
Another sourcemap
related idea I had (which probably deserves it's own issue) is that it would be cool to be able to 'retroactively generate a sourcemap
) for a webapp, based on the unminified output from wakaru
; such that we could than take that sourcemap
, and apply it to the original minified web app source for debugging the live app.
Edit: Created a new issue to track this:
I have considered this before. The conclusion is that Wakaru is built for unmodified code without sourcemap. It isn't very meaningful to support such a feature when you can access all the source code.
It isn't very meaningful to support such a feature when you can access all the source code.
@pionxzh I was specifically talking about it in terms of bundled modules (eg. React, etc), and not the unique web app code of the app itself.
You mean like, for popular open-source projects, we can put some sourcemap in our project / read from the chunk, and then reverse map the minified variable and function name back to normal?
A configuration table/profile can be provided to allow users to manually write correspondences. wakaru can simply include the rules of the better known packages.
@StringKe Can you specify the content that you would expect to have? and the corresponding behavior 🙏
You mean like, for popular open-source projects, we can put some sourcemap in our project / read from the chunk, and then reverse map the minified variable and function name back to normal?
@pionxzh Similar to that, but probably not "put the sourcemap in our project" directly; but more process the sourcemaps from popular open-source projects and extract those details to an 'intermediary form'. That 'intermediary form' would be similar to the 'module map' file, as I described earlier in this thread:
When I was exploring PoC ideas for my own project previously, I was looking to generate a file similar to the 'module map' that this project is using; but instead of just for the names of modules, I wanted to be able to use it to provide a 'variable name map'. Though because the specific variables used in webpack/etc can change between builds, my thought was that first 'normalising' them to a 'known format' based on their context would make sense to do first.
That could then be later enhanced/expanded by being able to pre-process these 'variable name mappings' for various open source projects in a way that could then be applied 'automagically' without the end user needing to first create them.
It could also be enhanced by similar techniques such as what the
humanify
project does, by using LLMs/similar to generate suggested variable name mappings based on the code.Originally posted by @0xdevalias in https://github.com/pionxzh/wakaru/issues/34#issuecomment-1807393509
A configuration table/profile can be provided to allow users to manually write correspondences. wakaru can simply include the rules of the better known packages.
@StringKe nods, sounds like we are thinking about similar things here :)
Can you specify the content that you would expect to have? and the corresponding behavior
@pionxzh For me personally, I haven't deeply thought through all the use cases in depth, but at a high level I basically want to be able to take a web app that is going to be re-built multiple times, and be able to have a 'config file' similar to the 'module mapping' that wakaru has/had; but that also allows me to specify the variable/function names ('symbols') that are used within it.
The slightly more challenging part is that because the app will be re-built multiple times, the minified variables will change (sometimes every build), so we can't easily use those as the 'key' of the mapping. One idea I had for solving that is potentially by first renaming all of the variables based on a 'stable naming pattern' (eg. func_*
, arg_*
, const_*
, etc; and then could just use a counter/similar based on the 'scope' it's being defined in) that would be generated based on the scope/type of the 'symbol', and would therefore be resilient to the minified variable names changing each build. Those 'stable intermediary names' could then potentially be used for the keys in the variable mapping.
Though then we also need to figure out what level of 'granularity' makes sense to generate those 'stable intermediary names' at; as having a 1:1 mapping of those 'stable name scopes' to JS scopes could potentially end up being really noisy in the mapping file. So maybe using a 'higher abstracted scope' would make more sense (eg. at the module level or similar)
My original hacky implementation of this in my own PoC code was using JS objects/JSON to map an explicit minified variable name to it's 'proper' name; but that broke because the minified names changed between builds. Even by implementing the 'stable naming pattern', if those 'stable names' included a 'counter' in them (eg. func_1
, const_8
, etc) we still probably wouldn't want to use those stable names directly as the key of an object, as if a new variable was added 'in between' in a later build, that would flow on to 'shifting' the 'counter' for every variable of a matching type afterwards, which would be a lot of effort to manually update in a mapping file. While I haven't thought too deeply about it, I think that by using an array in the mapping file, it should simplify things so that we only need to make a small change to 'fix the mappings' when a new variable is added that 'shifts' everything.
Even by using the array concept in the mappings file, there is still some manual pain/effort involved in trying to keep the mapping 'up to date' in newer builds. That's what lead me into some of the deeper/more esoteric ideas/thinking around 'fingerprinting' that I expand on below.
--
(Edit: I have created a new issue for the AST fingerprinting stuff described below, see https://github.com/pionxzh/wakaru/issues/74)
Another area I started looking into (but haven't deeply explored yet) for both figuring out how to map variable names to sections of code in a 'smart' way, and potentially also for module identification (see #41); is in the space of 'structural AST fingerprinting' or 'code similarity' algorithms and similar. (I realise that this is a rather deep/esoteric angle to be looking at this from, and that there are likely going to be far simpler/easier ways to implement the variable mapping/module identification in a 'good enough' way without going to this level of depth; but I'm curious to explore it regardless, to see if any good ideas come out of it)
I haven't gotten too far in my reading yet (got distracted on other things), but the high level of my idea was that maybe we could generate an 'AST fingerprint' that isn't impacted by the variable/function/etc names ('symbols') changing during minification; and then use that as the basis for the 'key' in the 'mappings file'; as that fingerprint could theoretically still identify a 'scope' (which might be a literal JS scope, or might be a higher level abstraction that we decide makes sense; the most abstract being probably at the bundled module level) even if the bundler decides to move some functions around to a different module/etc. Then obviously if we were able to generate those 'resilient fingerprints' to identify code even when it's been minified, that would make perfect sense to apply to module detection/etc (see #41) as well.
Some of the high level ideas / search terms that I was using to start my research in that area was things like:
Here is a link dump of a bunch of the tabs I have open but haven't got around to reviewing in depth yet, RE: 'AST fingerprinting' / Code Similarity / etc:
Edit: Started a new gist to keep my notes/references altogether in one place in a better way + added the above linkdump to it:
--
Another idea I've had, but only lightly explored so far, is looking into how various projects like Terser, Webpack, etc choose their minified variable names in general; but also how they handle 'stable minified variables' between builds (which is something that I know at least Webpack has some concept of). My thought there is that by understanding how they implement their own 'stable minified variables between builds', that we might be able to leverage to either a) do similar, or b) be able to reverse engineer that in a way that might be able to be 'retroactively applied' on top of an existing minified project that didn't use 'stable minified variables', to 'stabilise' them.
Let me share a bit of my current thoughts on this:
un-indirect-call
shall detect some pattern and rename the minified export name back to the real name.It's ok to not link this response everywhere as I'm still thinking about this. And it should be moved to a new issue.
And it should be moved to a new issue.
@pionxzh I'll create one for it now; as I just wrote out a bunch of thoughts for it that probably shouldn't clutter up this issue more.
Edit: Created:
And I also created a new issue for the 'AST fingerprinting' concept as well:
copilot now has a similar feature: https://code.visualstudio.com/updates/v1_87#_rename-suggestions worth looking into how they've done it
Originally posted by @j4k0xb in https://github.com/jehna/humanify/issues/8#issuecomment-1969984885
Release detailed here:
Couldn't see any overly relevant commits in that range, but did find the following searching the issue manually:
Which lead me to this label:
And these issues, which sound like there are 'rename providers' used by the feature:
More docs about rename providers here:
- https://code.visualstudio.com/docs/editor/editingevolved#_rename-symbol
- https://code.visualstudio.com/api/references/vscode-api#:~:text=registerRenameProvider(
- https://code.visualstudio.com/api/references/vscode-api#RenameProvider
RenameProvider The rename provider interface defines the contract between extensions and the rename-feature.
prepareRename
Optional function for resolving and validating a position before running rename. The result can be a range or a range and a placeholder text. The placeholder text should be the identifier of the symbol which is being renamed - when omitted the text in the returned range is used.
provideRenameEdits
Provide an edit that describes changes that have to be made to one or many resources to rename a symbol to a different name.- https://code.visualstudio.com/api/language-extensions/programmatic-language-features
- https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_prepareRename
Prepare Rename Request (:leftwards_arrow_with_hook:) The prepare rename request is sent from the client to the server to setup and test the validity of a rename operation at a given location.
- https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_rename
Rename Request The rename request is sent from the client to the server to ask the server to compute a workspace change so that the client can perform a workspace-wide rename of a symbol.
- https://vshaxe.github.io/vscode-extern/vscode/RenameProvider.html
- https://github.com/vshaxe/vscode-extern/blob/master/src/vscode/RenameProvider.hx
Based on the above, and the release notes explicitly mentioning copilot, I suspect the implementation will be in the Copilot extension itself (which isn't open-source):
- https://marketplace.visualstudio.com/items?itemName=GitHub.copilot Downloading that gives
GitHub.copilot-1.168.741.vsix
, which seems to just be a.zip
file:⇒ file GitHub.copilot-1.168.741.vsix GitHub.copilot-1.168.741.vsix: Zip archive data, at least v2.0 to extract, compression method=deflate
Though unzipping that and searching for
provideRename
didn't seem to turn up anything useful unfortunately.Originally posted by @0xdevalias in https://github.com/jehna/humanify/issues/8#issuecomment-1970345566
Continued context from above, it seems that this is implemented via a VSCode proposed API NewSymbolNamesProvider
:
It's less about "reverse engineering GitHub copilot" and more about "trying to figure out where the 'rename suggestions' change mentioned in the VSCode release notes was actually implemented; and what mechanism 'integrates' it into VSCode'".
The above is assumptions + an attempt to figure that out; but if you're able to point me to the actual issue/commit on the VSCode side (assuming it was implemented there), or confirm whether it's implemented on the closed source GitHub Copilot extension side of things (if it was implemented there), that would be really helpful.
If it was implemented on the GitHub Copilot extension side of things, then confirming whether the VSCode extension 'rename provider' is the right part of the VSCode extension API to look at to implement a similar feature would be awesome.
Originally posted by @0xdevalias in https://github.com/jehna/humanify/issues/8#issuecomment-1977697935
Thank you for taking interest in this API. The rename suggestions feature is powered by a proposed API defined here. Extensions provide the suggestions, while the vscode shows them in the rename widget.
Originally posted by @ulugbekna in https://github.com/jehna/humanify/issues/8#issuecomment-1978471876
I think I shared some of these links in chat already, but adding them here for future reference as well:
Stack Graphs (an evolution of Scope Graphs) sound like they could be really interesting/useful with regards to code navigation, symbol mapping, etc. Perhaps we could use them for module identification, or variable/function identifier naming stabilisation or similar?
- https://github.blog/changelog/2024-03-14-precise-code-navigation-for-typescript-projects/
Precise code navigation is now available for all TypeScript repositories. Precise code navigation gives more accurate results by only considering the set of classes, functions, and imported definitions that are visible at a given point in your code.
Precise code navigation is powered by the stack graphs framework. You can read about how we use stack graphs for code navigation and visit the stack graphs definition for TypeScript to learn more.
- https://github.blog/2021-12-09-introducing-stack-graphs/
Introducing stack graphs
Precise code navigation is powered by stack graphs, a new open source framework we’ve created that lets you define the name binding rules for a programming language using a declarative, domain-specific language (DSL). With stack graphs, we can generate code navigation data for a repository without requiring any configuration from the repository owner, and without tapping into a build process or other CI job.
- LOTS of interesting stuff in this post..
As part of developing stack graphs, we’ve added a new graph construction language to Tree-sitter, which lets you construct arbitrary graph structures (including but not limited to stack graphs) from parsed CSTs. You use stanzas to define the gadget of graph nodes and edges that should be created for each occurrence of a Tree-sitter query, and how the newly created nodes and edges should connect to graph content that you’ve already created elsewhere.
- https://github.com/tree-sitter/tree-sitter-graph
tree-sitter-graph
The tree-sitter-graph library defines a DSL for constructing arbitrary graph structures from source code that has been parsed using tree-sitter.- https://marketplace.visualstudio.com/items?itemName=tree-sitter.tree-sitter-graph
tree-sitter-graph
support for VS Code This language extension for VS Code provides syntax support fortree-sitter-graph
files.Why aren’t we using the Language Server Protocol (LSP) or Language Server Index Format (LSIF)?
To dig even deeper and learn more, I encourage you to check out my Strange Loop talk and the
stack-graphs
crate: our open source Rust implementation of these ideas.- https://github.com/github/stack-graphs
Stack graphs The crates in this repository provide a Rust implementation of stack graphs, which allow you to define the name resolution rules for an arbitrary programming language in a way that is efficient, incremental, and does not need to tap into existing build or program analysis tools.
- https://docs.rs/stack-graphs/latest/stack_graphs/
- https://github.com/github/stack-graphs/tree/main/languages
This directory contains stack graphs definitions for specific languages.
- https://github.com/github/stack-graphs/tree/main/languages/tree-sitter-stack-graphs-javascript
tree-sitter-stack-graphs
definition for JavaScript This project definestree-sitter-stack-graphs
rules for JavaScript using thetree-sitter-javascript
grammar.The command-line program for
tree-sitter-stack-graphs-javascript
lets you do stack graph based analysis and lookup from the command line.cargo install --features cli tree-sitter-stack-graphs-javascript
tree-sitter-stack-graphs-javascript index SOURCE_DIR
tree-sitter-stack-graphs-javascript status SOURCE_DIR
tree-sitter-stack-graphs-javascript query definition SOURCE_PATH:LINE:COLUMN
- https://github.com/github/stack-graphs/tree/main/languages/tree-sitter-stack-graphs-typescript
tree-sitter-stack-graphs
definition for TypeScript This project definestree-sitter-stack-graphs
rules for TypeScript using thetree-sitter-typescript
grammar.The command-line program for
tree-sitter-stack-graphs-typescript
lets you do stack graph based analysis and lookup from the command line.- https://dcreager.net/talks/2021-strange-loop/
- Redirects to https://dcreager.net/talks/stack-graphs/
Incremental, zero-config Code Navigation using stack graphs.
In this talk I’ll describe stack graphs, which use a graphical notation to define the name binding rules for a programming language. They work equally well for dynamic languages like Python and JavaScript, and for static languages like Go and Java. Our solution is fast — processing most commits within seconds of us receiving your push. It does not require setting up a CI job, or tapping into a project-specific build process. And it is open-source, building on the tree-sitter project’s existing ecosystem of language tools.
- https://www.youtube.com/watch?v=l2R1PTGcwrE
"Incremental, zero-config Code Nav using stack graphs" by Douglas Creager
- https://media.dcreager.net/dcreager-strange-loop-2021-slides.pdf
- https://media.dcreager.net/dcreager-2022-ucsc-lsd-slides.pdf
- https://docs.github.com/en/repositories/working-with-files/using-files/navigating-code-on-github
GitHub has developed two code navigation approaches based on the open source tree-sitter and stack-graphs library:
- Search-based - searches all definitions and references across a repository to find entities with a given name
- Precise - resolves definitions and references based on the set of classes, functions, and imported definitions at a given point in your code
To learn more about these approaches, see "Precise and search-based navigation."
- https://docs.github.com/en/repositories/working-with-files/using-files/navigating-code-on-github#precise-and-search-based-navigation
Precise and search-based navigation Certain languages supported by GitHub have access to precise code navigation, which uses an algorithm (based on the open source stack-graphs library) that resolves definitions and references based on the set of classes, functions, and imported definitions that are visible at any given point in your code. Other languages use search-based code navigation, which searches all definitions and references across a repository to find entities with a given name. Both strategies are effective at finding results and both make sure to avoid inappropriate results such as comments, but precise code navigation can give more accurate results, especially when a repository contains multiple methods or functions with the same name.
- https://pl.ewi.tudelft.nl/research/projects/scope-graphs/
Scope Graphs | A Theory of Name Resolution
Scope graphs provide a new approach to defining the name binding rules of programming languages. A scope graph represents the name binding facts of a program using the basic concepts of declarations and reference associated with scopes that are connected by edges. Name resolution is defined by searching for paths from references to declarations in a scope graph. Scope graph diagrams provide an illuminating visual notation for explaining the bindings in programs.
Originally posted by @0xdevalias in https://github.com/0xdevalias/chatgpt-source-watch/issues/11
using this code:
I get this result:
using another tool, I get:
https://richsnapp.com/tools/code-unmangler
using another tool, I get:
https://github.com/relative/synchrony