GoogleChrome / GoogleChrome/webstatus.dev

[ENHANCEMENT] Use ANTLRv4 visitor code to gather suggestions

Open
#718 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue hacktoberfest typescript
Dominant language
Go
Stars
254
Forks
62
Avg merge
1d 10h
Merged PRs (30d)
64

Description

**Is your feature request related to a problem? Please describe.**
We present as many options for the query box as possible when a user first clicks into it. But some of the terms like `group`, `snapshot` and `name` can be very hard for a user to discover what is going on. In the future, we could easily organize which suggestions to gather by using the generated ANTLR visitor pattern. That generated code provides us with methods we can implement (instead of manually parsing and manually organizing based on term). Given we already use the ANTLR tool chain for the backend, using it again for the frontend should be low effort. Depends on #716

This will help enable the use cases described in #274

**Describe the solution you'd like**
- An Implemented ANTLR visitor class that gathers suggestions

**Inspired by **
- https://tomassetti.me/code-completion-with-antlr4-c3/
- https://www.abstractsyntaxseed.com/blog/antlr4-autocomplete-library/rules

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.