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

Autocomplete State #130

Open
ruler501 opened this issue Mar 25, 2023 · 1 comment
Open

Autocomplete State #130

ruler501 opened this issue Mar 25, 2023 · 1 comment

Comments

@ruler501
Copy link

It would be useful to have a partially written block of text parsed as much as possible and provide information that can be used for autocomplete purposes. For my specific purposes I'm writing a query language that would want to be able to see name= and provide suggestions for the values of names that it sees are possible in the set of values to be searched.

It seems like there might be a way to do it between the tracing api and error recovery api(since the string will probably be only partially complete so invalid in most cases). Any pointers on how to start putting together a proof of concept for this?

@foonathan
Copy link
Owner

Hm, I'm not quite sure what you want - autocomplete usually requires semantic information, which lexy doesn't have as it's only during parsing.

Can you give a rough sketch of the sort of API you'd like to have?

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