Skip to content

Is match really semantically? #1260

Closed Answered by HerringtonDarkholme
pjljvandelaar asked this question in Q&A
Discussion options

You must be logged in to vote

And also, if you read the whole doc, you should understand ast-grep is base on tree structure. It also has a large Textual vs Structural title on the doc.

Nearly all the paragraphs on the page is discussing the tree-structure.

Implementation wise, semantics require special logic for each language. The fact that int f() and int f(void) is equivalent is purely C/C++ semantics. They are NOT reflected in the AST.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by pjljvandelaar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants