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

why not just use xpath to search? #7

Open
smileboywtu opened this issue Apr 30, 2019 · 2 comments
Open

why not just use xpath to search? #7

smileboywtu opened this issue Apr 30, 2019 · 2 comments

Comments

@smileboywtu
Copy link

No description provided.

@cancerberoSgx
Copy link

Hey, @smileboywtu I just arrived here but I must tell that I was looking for a project like this for some time. In particular JSON and JS/TS AST. In the case of JSON there's a defacto standard called JSON-PATH that is analog to XPath and although it has several years I dont think it was much accepted... Then there's a standard called XPointer, but its objective is to represent uniquely a node in the tree (not useful for queries). Then there are some implementations of CSS2/CSS3 to query objects and I think those are more likely to be accepted / easy to use. I'm still trying to figure out the details of this project syntax, but it seems powerfull/flexible enough to easily implement a CSS-like subset syntax on top of it. Perhaps the same applies to xpath ?

For asts recently I found https://github.com/microsoft/lsif-node , https://github.com/jumattos/lsif-util that seems interesting to integrate with editors, would be an interesting adapter for this project, although the paradigm is not purely based on ASTs. Interesting project, keep ip up! Thanks

@smileboywtu
Copy link
Author

thanks for your reply, I'd like to appreciate for you works on this project, i'm interesting on this, maybe it can be uses as a complex code search tool like this project: https://github.com/hchasestevens/astpath

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants