-
Notifications
You must be signed in to change notification settings - Fork 19
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
Provide How Tos for the Cursor API #334
Comments
OmarTawfik
changed the title
ship CST Visitor API in TypeScript, not just Rust
ship Visitor+Cursor APIs in TypeScript+Rust
Jul 19, 2023
OmarTawfik
changed the title
ship Visitor+Cursor APIs in TypeScript+Rust
ship Visitor and Cursor APIs with How Tos
Jul 19, 2023
OmarTawfik
changed the title
ship Visitor and Cursor APIs with How Tos
ship Visitor and Cursor APIs, including How Tos
Jul 19, 2023
github-merge-queue bot
pushed a commit
that referenced
this issue
Dec 3, 2023
In preparation for #334 (and other how-tos). This adds a bit more introduction and context to the user guide that should be independent on the actual API used (Rust/TS) and also provides stubs for the How-Tos on the parsing/navigating the syntax tree. When I tried to write these specific how-tos, I thought that we should be able to define, at least from the higher level, what the CST is, how the process looks like and add some more context (e.g. multiple versions and why we need to create a specific version for the language, first). Also this helps establish a bit more structure to the guide that should help with writing more documentation/guides as we go. Ironically, http://shader-slang.com/slang/user-guide/index.html helped me structure this a bit as a guide that the user is welcomed to and what they might benefit from (intro, context) before diving deeper into the guides/context.
Xanewok
changed the title
ship Visitor and Cursor APIs, including How Tos
ship Cursor APIs, including How Tos
Dec 14, 2023
Xanewok
changed the title
ship Cursor APIs, including How Tos
Provide How Tos for the Cursor API
Dec 14, 2023
github-merge-queue bot
pushed a commit
that referenced
this issue
Dec 19, 2023
Closes #334 This adds a more hands-on intro to the parsing API and adds two examples on how to use it: - how to reconstruct the source: it's a kind of a "hello world" since you only visit and print the contents and it helps reinforce that the CST is, in fact, complete (wrt trivia) - how to list contracts and their names - it's simple, real worldsy and uses two different node kinds in a simple relationship. This is done for Rust CLI, Rust library and the NPM package used as a library. With this, we could probably get rid of the content from the respective index pages for Rust/NPM package and use this as the introductory first subpage as it overlaps with it now a bit. Let me know if this is the direction we want to go in; didn't want to add more involved examples until I was sure that's what we want.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://documentation.divio.com/how-to-guides.html
The text was updated successfully, but these errors were encountered: